Build APIs with Flask (the right way)