import struct


def ub32(b):
    """Convert bytes (LSB first) to a 32-bit integer.

    Example:
            ub32(b'\x12\x34\x56\x78') == 0x78563412
    """
    (value, ) = struct.unpack('<I', b)
    return value