Rewrote the rest stuff from flask-rest to flask-restful