app.run(debug=True, use_reloader=False)
if __name__ == '__main__':
    if len(sys.argv) < 2:
        raise Exception('Must provide domain for application execution.')
What's the right approach for calling functions after a flask app is run?