Adaptation to work with the upcoming pyqode 2.3