fix python 3 error at configure time

This only addresses a configure time problem with Python 3. Compilation still fails when using Python 3. This should also be addressed in the very near future.