def SafePopen(args, **kwargs):
    if (kwargs.get('stdin') is None):
        kwargs['stdin'] = (subprocess.PIPE if (sys.platform == 'win32') else None)
    return subprocess.Popen(args, **kwargs)
def SafePopen(args, **kwargs):
    if (kwargs.get('stdin') is None):
        kwargs['stdin'] = (subprocess.PIPE if (sys.platform == 'win32') else None)
    return subprocess.Popen(args, **kwargs)