make rules.py compatible with python2.6.