def launchWithoutConsole(command, args):
    """Launches 'command' windowless and waits until finished"""
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
Running a process in pythonw with Popen without a console