Make scansys.py backward compatible all the way to Python 2.0.