def to_byte_string(value, count=2, signed=False, byteorder='little'):
    """Take bytes and return string of integers.

    Example: to_byte_string(123456, count=4) = '64 226 1 0'
    """
    byte_value = value.to_bytes(count, byteorder=byteorder, signed=signed)
    return ' '.join([str(x) for x in byte_value])