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.
Cool, but why is there a class callCordova instead of just having the function call_to_Cordova?