If you do it like this the `__name__ == '__main__'` part is in vain: It is there to allow this file to be imported as a module, but this to lines will almost always force the whole script to exit.

The most pythonic way would be to this into your ``main()`` function. You can set CONCURRENT_APPS there and maybe set a default value globally (or just set it None).