Make 1.5.1 build Python3 compatible