from email.parser import BytesParser


def message_from_bytes(s, *args, **kws):
    """Parse a bytes string into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    """
    return BytesParser(*args, **kws).parsebytes(s)