Add amazon support to oauth2.py