def bytesHiLo(word):
    """Converts from 16-bit word to 8-bit bytes, hi & lo"""
    if word > 255:  # more than 1 byte
        word_hi, word_lo = word >> 8, word & 0xFF  # high byte and low byte
    else:
        word_hi, word_lo = 0, word  # make sure two bytes always sent
    return word_hi, word_lo