make rules.py compatible with python2.6.
Merge pull request #12 from Juniper/ijohnson_build_failure_fix

make rules.py compatible with python2.6.