Python 2.4 compatibility for test cases
Merge pull request #25 from p-push/python24-compat

Python 2.4 compatibility for test cases