moved oauth.py to the lib directory