It was using Python 2 and the flask-oauthlib library which is no longer maintained by the owner.
If you really wish to view the archived sample, please switch to the archive branch. This code is no longer maintained and functionality is not guaranteed.