code: def read(self):
          
          with closing(self.open()) as f:
              data = f.read()
          return data.decode("utf-8") or None
docs: Reads the contents of the GPFile and returns the contents as a string (assumes UTF-8)