Make test.py exit correctly
Fix path for client.py
Fix subprocess handling and cmd splitting in client.py