configure: allow building with python3