Hacky code to run flask-restful