def bytesToUnsignedInteger(byteList):
    """Converts a little-endian sequence of bytes into an unsigned integer."""
    value = 0   #initialize at 0
    for order, byte in enumerate(byteList):
        value += byte*(256**order)
    return value