import uuid


def uuid_to_bytes(id):
    """
    Convert a uuid to a 16-byte string (containing the six integer fields in big-endian byte order)
    :param id: uuid string or object
    :return: a byte array
    """
    return uuid.UUID(id).bytes