Restore Python 3.2 compatibility

An intermediate pull request added syntax that's invalid on Python 3.2. This pull request fixes that.