old_contents: import sys
  
  print "\n".join(line.replace(' "','"').replace(' .','.').replace(' ,',',').replace(' - ','-') for line in sys.stdin)
  
new_contents: import sys
  
  replacement_map = {
      ' "' : '"',
      ' .' : '.',
      ' ,' : ',',
      ' - ': '-',
      ' : ': ':',
      ' ? ': '?',
  }
  
  for line in sys.stdin:
      for k, v in replacement_map.iteritems():
          line = line.replace(k, v)
      print(line)
  
subject: Add new version