Fix for building with python 3.4