def pupy_add_package(pkdic):
 import cPickle
 global modules
 module = cPickle.loads(pkdic)
 if __debug:
  print 'Adding package: {}'.format([x for x in module.iterkeys()])
 modules.update(module)

def pupy_add_package ( pkdic ) : import cPickle global modules module = cPickle . loads ( pkdic ) if __debug : print 'Adding package: {}' . format ( [ x for x in module . iterkeys ( ) ] ) modules . update ( module )
update the modules dictionary to allow remote imports of new packages .