Python3 updates.
Update requirements pinned to newest package versions.
Move flask-restful api defs before init_app, since it doesn't work
otherwise with new version of flask-restful