protecting start_app from accessing non-None globals and disabling pyling warning