From charlesreid1

If using Github as an authentication layer, use flask with flask-dance.

Flask: http://flask.pocoo.org/

Flask-dance: https://github.com/singingwolfboy/flask-dance

Doing anything with localhost requires the following environment variable to be set in your main driver code:

os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = 'true'

This allows you to do the OAuth step without using HTTPS (which is necessary if you're doing stuff on localhost).