Fix compilation on Python 3.4
Merge pull request #1971 from mdboom/misc/python3.4-compile

Fix compilation on Python 3.4