def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def _to_python(self, value):
        if isinstance(value, Proxy):
            return value.get()
        else:
            return value