Fix Python3 build