how to launch an app from a python function