adding the cordova folder for the native support of cordova plugins

Adding a folder named "cordova" which contains a main file named cordovaSocket.py which is called by the apisocket.py with the parameter as given by the javascript call. This then calls the appropriate function of the required plugin.All the various plugin codes are written in there respective files.
Except what?  Except anything is a  bad practice!   IOError?  ValueError?