Flask-Restful 0.2.12 works with application factory pattern