import struct


def decodeUint32(bs):
    """
    decodeUint32(bs) is the reverse of uint32(n).
    It returns the int value represneted by the 4 byte big-endian (network) order encoding represented by bs.
    """

    return struct.unpack('!I', bs)[0]