docs: def to_python(self, data):
          """
          Convert a data to python format.
          """
          if data is None:
              return ''
          if isinstance(data, self.datatype):
              return data
          if self.datatype is unicode:
              return unicode(data, DEFAULT_ENCODING)
          else:
              return data.encode(DEFAULT_ENCODING)