code: def file_to_str(fname):
      
      data = None
      # rU = read with Universal line terminator
      with open(fname, 'rU') as fd:
          data = fd.read()
      return data
docs: Read a file into a string
      PRE: fname is a small file (to avoid hogging memory and its discontents)