fix build for python3