Simple helper for building RESTful APIs with Flask