`cmp()` is used in _scheduler.py_, but does not exist in python 3. The methods which rely on it could probably be [ported like this](https://portingguide.readthedocs.io/en/latest/comparisons.html).