Convert ssh.py to use the logging module