p = subprocess.Popen(['ssh', '-T', '-v', 'user@myhost.com'], stdin=
    subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=
    env, preexec_fn=os.setsid)
How to call ssh by subprocess module so that it uses SSH_ASKPASS variable