Change syntax to be Python 2.6 compatible

Similar to https://github.com/ianepperson/pyredminews/pull/21, but without any extra commits