clean ssh.py file and start refactoring .. to be continued..