code: def to_xml(self):
          
          ret = '<exif>'
          for k in self.__dict__:
              ret += '<%s>%s</%s>' % (k, self.__dict__[k], k)
          ret += '</exif>'
          return ret
docs: Serialize all properties as XML