old_contents: import sys
  from wigiki.generator import SiteGenerator
  from wigiki.config import ConfigManager
  
  def main():
      cm = ConfigManager()
      tpl_dir = cm.config['application']['templates']
      out_dir = cm.config['application']['output']
      base_url = cm.config['application']['baseurl']
      generator = SiteGenerator(tpl_dir, out_dir, base_url,
          cm.config['gists'], cm.config['site'])
      generator.run()
  
new_contents: from wigiki.generator import SiteGenerator
  from wigiki.config import ConfigManager
  
  def main():
      cm = ConfigManager()
      tpl_dir = cm.config['application']['templates']
      out_dir = cm.config['application']['output']
      base_url = cm.config['application']['baseurl']
      generator = SiteGenerator(tpl_dir, out_dir, base_url,
          cm.config['gists'], cm.config['site'])
      generator.run()
  
subject: remove unnecessary imports