title: how to import a module in environment that won't let it be a hazard to my computer? (python)
body: <p>python 2.7</p>
  
  <p>windows 7</p>
  
  <p>I wan't to download a bunch of modules and run them. the programmer of these modules could make them contain a virus. to prevent this I would like to run these modules in an environment that won't let it import any modules unless I specify that it can import that certain module (a module I would let it import would be the math module, or other modules in the package. a module that I would restrict would be the os module.)</p>
  
  <p>it this possible in any shape or form, even if it doesn't match all of the specifications I gave, or would I have to go through the code myself and make sure its fine.</p>