old_contents: import bz2
  import sys
  
  def parse_nodes(g, keysfile, namesfile):
      while True:
          g.add_node(keyid, name=name)
  
  def parse_edges(g, sigfile):
      raise NotImplementedError
  
  def get_files(wot_filename):
      with bz2.BZ2File(wot_filename) as wot_ar:
          wot_archive = arpy.Archive(fileobj=wot_ar)
          wot_files = {}
  
          for f in wot_archive:
              filename = f.header.name.decode()
              wot_files[filename] = f.read()
  
          return wot_files
  
  if __name__ == "__main__":
      if len(sys.argv) < 2:
          sys.stderr.write("nxwot.py <WOT file>\n")
          sys.exit(1)
  
  
      filename = sys.argv[1]
      files = get_files(filename)
  
new_contents: import bz2
  import sys
  
  import arpy
  
  
  def parse_nodes(g, keysfile, namesfile):
      while True:
          g.add_node(keyid, name=name)
  
  
  def parse_edges(g, sigfile):
      raise NotImplementedError
  
  
  def get_files(wot_filename):
      with bz2.BZ2File(wot_filename) as wot_ar:
          wot_archive = arpy.Archive(fileobj=wot_ar)
          wot_files = {}
  
          for f in wot_archive:
              filename = f.header.name.decode()
              wot_files[filename] = f.read()
  
          return wot_files
  
  if __name__ == "__main__":
      if len(sys.argv) < 2:
          sys.stderr.write("nxwot.py <WOT file>\n")
          sys.exit(1)
  
      filename = sys.argv[1]
      files = get_files(filename)
  
subject: Add forgotten import, pep8