def to_python(self, value): if isinstance(value, basestring): return FontDict.fromstring(value) else: return FontDict(_FontField.to_python(self, value))