code: def process_modules(modules):
      '''Accepts dictionary of 'client' and 'api' modules and creates
      the corresponding files.
      '''
      for mod in modules['client']:
          directory = '%s/client_modules' % HERE
          if not exists(directory):
              makedirs(directory)
          write_module_file(mod, directory, 'pyeapi')
  
      for mod in modules['api']:
          directory = '%s/api_modules' % HERE
          if not exists(directory):
              makedirs(directory)
          write_module_file(mod, directory, 'pyeapi.api')
  
      create_index(modulesf process_modules(modules):
      '''Accepts dictionary of 'client' and 'api' modules and creates
      the corresponding files.
      '''
      for mod in modules['client']:
          directory = '%s/client_modules' % HERE
          if not exists(directory):
              makedirs(directory)
          write_module_file(mod, directory, 'pyeapi')
  
      for mod in modules['api']:
          directory = '%s/api_modules' % HERE
          if not exists(directory):
              makedirs(directory)
          write_module_file(mod, directory, 'pyeapi.api')
  
      create_index(modules)
docs: Accepts dictionary of 'client' and 'api' modules and creates
      the corresponding files.