allow building for Python 3