def convert(cls, objectData): '''Convert the given object into a plist. * objectData -- The data for this object ''' string = StringIO(objectData) plist = CFPropertyList(string) plist.load() return native_types(plist.value)