Is (will) the project is likely to opensource, most likely in python.
There was a need to make the whole project modular.
BUT, there is a task you must select each module in your sandbox, no free access except for the supplied modules must have (neither to the system nor access the files nor to the created objects). For called methods necessary to control what the other module was a challenge.
The question is, will it be sufficient to check the set of plug-ins in a source file? If not, are there projects run python scripts in a sandbox with access to these modules and units of this project in python?
p.s. c++, c#, java, as far as I know, such a sandbox is
upd. it seems all sad, for python there are no mechanisms to create a vm and provision of controlled access to internal objects and classes -- here a new question