These changes should fix the errors I was seeing building python-valve using Python 3.4