Added a minimal API for clipboard management

along with modules and python execution refactoring