Decorators for Flask to better support API