title: Parallel Python - create objects into another class in parallel execution
body: <p>I'm trying to do something pretty simple with Parallel Python. I would like to be able to create an object from a class I've created inside another method from a class use to do a job in parallel. 
  Here is a basic example of what I would like to make it work : </p>
  
  <pre><code>import pp
  
  class TestClass(object):
      def __init__(self): 
          pass
      def doSomething (self, number) : 
          print number**2
  
  class PPTask (object) :
      def __init__ (self) : 
          pass
      def ppTask(self, number = 1) :
          sum = 0
          sum += number
          tc = TestClass()
          tc.doSomething(sum)
          return sum
  
  if __name__ == '__main__' : 
      job_server = pp.Server()
      job_list = []
      results = []
      for i in xrange(10) : 
          pt = PPTask()
          job_list.append(job_server.submit(pt.ppTask, (1,), globals = globals()))
      for job in job_list : 
          results.append(job())
      for result in results :
          print result
  </code></pre>
  
  <p>This raise <code>NameError: global name 'TestClass' is not defined</code> and I didn't find any solution to pass it or reuse it in the ppTask method. </p>
  
  <p>Any help would be greatly appriciated.</p>
  
  <p>Thank you in advance</p>