import struct


def get_bytes_for_tempo(tempo):
    """Convert the given integer value into a three byte hex representation"""
    high_byte = (0xFF0000 & tempo) >> 16
    mid_byte = (0xFF00 & tempo) >> 8
    low_byte = 0xFF & tempo

    return struct.pack('>BBB', high_byte, mid_byte, low_byte)