Make tools/ compatible with both, Python 2 and 3 without 2to3-conversion.