def _get_default_keybinds(self):
    binds = self.get_default_keybinds()
    if (not isinstance(binds, list)):
        binds = [binds]

    def enum_to_str(item):
        if (type(item) is not str):
            return item.value
        return item
    binds = list(map(enum_to_str, binds))
    return {'keys': binds}
def _get_default_keybinds(self):
    binds = self.get_default_keybinds()
    if (not isinstance(binds, list)):
        binds = [binds]

    def enum_to_str(item):
        if (type(item) is not str):
            return item.value
        return item
    binds = list(map(enum_to_str, binds))
    return {'keys': binds}