build: add Python 3 support to build files