Added ssh method to test_server.py and modified and cleaned up the scripts