Refactored calling plugin functions
Renamed api module -> plugins
Renamed plugins files
Separated python api and plugins code