def create_egg(name, resources):
 egg = imp.new_module(name)
 egg.__loader__ = MockLoader()
 egg._resources = resources
 sys.modules[name] = egg

def create_egg ( name , resources ) : egg = imp . new_module ( name ) egg . __loader__ = MockLoader ( ) egg . _resources = resources sys . modules [ name ] = egg
creates a mock egg with a list of resources .