Python 3 compatible configure