code: def report_pymol_sessions(designs, directory):
      
      print "Reporting pymol sessions..."
  
      if os.path.exists(directory): shutil.rmtree(directory)
      os.mkdir(directory)
  
      with open('pymol_modes.txt') as file:
          import yaml
          base_config = yaml.load_cell(file)['Present design in pymol']
  
      for design in designs:
          decoy = design.representative
          config = base_config + ' save ' + os.path.join(
                  directory, design.get_fancy_path('.pse')) + ';'
  
          score_vs_distance.open_in_pymol(design, decoy, config, gui=False)
docs: Create pymol session for each reasonable design representative.  This
      method was copied from an old version of this script, and does not
      currently work.