code: def __setImports(self, schema):
          
          for ns,val in schema.imports.items(): 
              if self._imports.has_key(ns):
                  schema.addImportSchema(self._imports[ns])
docs: Add dictionary of imports to schema instance.
             schema -- XMLSchema instance