def get_object(model, session, *args, **kwargs):
    """
    Use get() to return an object, return None if object does not exist.
    """
    try:
        model_object = session.query(model).filter(*args, **kwargs).first()
        return model_object
    except Exception as e:
        return None