changed flask to not run in debug