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.
Is there any reason for this not being a standalone function?