fixed launching from python