import struct


def ser32(i):
    """Serialize a 32-bit unsigned integer i as a 4-byte sequence.

       The most significant byte of i appears first in the serialization.
    """
    return struct.pack('>L', i)