Fixing Python 2.4 SyntaxError