The Spotipy library supports the Authorization Code flow as given here http://spotipy.readthedocs.org/en/latest/#module-spotipy.oauth2 but I am still not able to figure out what needs to be passed for 'code' for get_access_token(). The whole oAuth flow is convoluted and hard to follow. Would greatly help if spotipy developers can document one oauth flow with an example.