import operator


def and_(lhs, rhs):
    """And operator to create boolean expressions with permissions

    Usage:
        permission = or_(and_("project.read", "project.write"), "project.everything")
    """
    return (operator.and_, lhs, rhs)