fix bugs in python-social-auth