Fix a class declaration that is a syntax error in Python 2.4

This lets your script run on RHEL5 machines with an antique Python version.