Blender isn't the only 3d app to use python as embedded language. I wonder how Maya and Houdini deal with these kinds of problems? And not only 3d packages encounter such issues - Google App Engine for example restricts usage of some python modules.