Implements pyqode.core #89

https://github.com/ColinDuquesnoy/pyqode.core/issues/89