Added workaround of new hook abscence in python-rope