I have a problem with a ssh connection in python I get the error 'NoneType' object has no attribute 'exec_command' I am thinking that maybe the ssh connection is timeing out. Since I have no control over the configuration of the ssh server(which is AIX 5.23), is there anything I can do in python to ensure that the ssh session does not timeout?