Fix for python 2.3

Fix for python 2.3