Fix usage of deprecated backend API (prepare for pyqode 2.4)