old_contents: #!/usr/bin/python
  
  from sfa.rspecs.pg_rspec_converter import PGRSpecConverter
  from sfa.rspecs.sfa_rspec_converter import SFARSpecConverter
  from sfa.rspecs.rspec_parser import parse_rspec
  
  
  class RSpecConverter:
  
      @staticmethod
      def to_sfa_rspec(in_rspec):
          rspec = parse_rspec(in_rspec)
          if rspec.format == 'sfa': 
            return in_rspec
          elif rspec.format == 'pg':
              return PGRSpecConverter.to_sfa_rspec(in_rspec)
          else:
               return in_rspec 
  
      @staticmethod 
      def to_pg_rspec(in_rspec):
          rspec = parse_rspec(in_rspec)
          if rspec.format == 'pg':
              return in_rspec
          elif rspec.format == 'sfa':
              return SFARSpecConverter.to_pg_rspec(in_rspec)
          else:
              return in_rspec 
  
  
  if __name__ == '__main__':
      pg_rspec = 'test/protogeni.rspec'
      sfa_rspec = 'test/nodes.rspec'  
  
      print "converting pg rspec to sfa rspec"
      print RSpecConverter.to_sfa_rspec(pg_rspec)
      
      print "converting sfa rspec to pg rspec"
      print RSpecConverter.to_pg_rspec(sfa_rspec)                   
  
new_contents: #!/usr/bin/python
  
  from sfa.rspecs.pg_rspec_converter import PGRSpecConverter
  from sfa.rspecs.sfa_rspec_converter import SfaRSpecConverter
  from sfa.rspecs.rspec_parser import parse_rspec
  
  
  class RSpecConverter:
  
      @staticmethod
      def to_sfa_rspec(in_rspec):
          rspec = parse_rspec(in_rspec)
          if rspec.format == 'sfa': 
            return in_rspec
          elif rspec.format == 'pg':
              return PGRSpecConverter.to_sfa_rspec(in_rspec)
          else:
               return in_rspec 
  
      @staticmethod 
      def to_pg_rspec(in_rspec):
          rspec = parse_rspec(in_rspec)
          if rspec.format == 'pg':
              return in_rspec
          elif rspec.format == 'sfa':
              return SfaRSpecConverter.to_pg_rspec(in_rspec)
          else:
              return in_rspec 
  
  
  if __name__ == '__main__':
      pg_rspec = 'test/protogeni.rspec'
      sfa_rspec = 'test/nodes.rspec'  
  
      print "converting pg rspec to sfa rspec"
      print RSpecConverter.to_sfa_rspec(pg_rspec)
      
      print "converting sfa rspec to pg rspec"
      print RSpecConverter.to_pg_rspec(sfa_rspec)                   
  
subject: fix imports