I am writing a python script that deals with user signups and I need to check a SQLAlchemy database for an existing user but when the lookup.username is non type, it returns