fix issue with getcode not being available in Py2.4 yet
Merge pull request #1090 from boegel/fix_getcode

fix issue with getcode not being available in Py2.4 yet