Starting the Flask rewrite