def get_user(kwargs):
    u = User.query.filter(db.or_(User.id == kwargs.get('id'), User.email ==
        kwargs.get('email'))).first()
if u is None:
    pass
How to run Flask-Login, Flask-BrowserID and Flask-SQLAlchemy in harmony?