Update spt_python.h

Adds compatibility for Python 2.4