Fix build issue with Python3