cleaned CordovaSocket.py