added pep8 override for "== True" which is going to __eq__ override
set session cookie to never expire
clear user.oauth_type session value if oauth fails