def _SetPlist(self, plist):
    if type(plist) is unicode:
      self._plist = db.Text(plist)
      self._ParsePlist()
    elif type(plist) is str:
      self._plist = db.Text(plist, encoding='utf-8')
      self._ParsePlist()
    else:
      self._plist_obj = plist
      self._plist = db.Text(self._plist_obj.GetXml())
Try to serialize map/reduce handler.
dataset/ETHPy150Open google/simian/src/simian/mac/models/base.py/BasePlistModel._SetPlist--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/mapreduce/util.py/try_serialize_handler