Fixed python scripts for Python 2.6.5