Create Flask app using existing code