Updated the comments before google-oauth2 in settings
Use .filter().count() instead of try: except: