def METHOD_NAME(self, name, cursor_font):
    if self.xcursor:
        cursor = self.get_xcursor(name)
    else:
        cursor = self.get_font_cursor(name, cursor_font)
    self[name.decode()] = cursor