def and_(*conditions) ->dict:
    """Helper that produces mongo query dict for AND of multiple conditions"""
    if len(conditions) == 1:
        return conditions[0]
    return {'$and': list(conditions)}
