def __string_to_int(data):
    """Convert string of bytes Python integer, MSB"""
    val = 0
    if type(data) == str:
        data = bytearray(data)
    for i, c in enumerate(data[::-1]):
        val += 256 ** i * c
    return val
