Python 3 compatibility.

Make the minimum modifications to get compatible with python 3 without losing python 2.7

I have not tested this, sorry.

python3.3 setup.py install
works (as does 2.7), but it turns out the package that I was trying to install, which imported configure, was supposed to import a different package named configure.  Therefore, I never ran the code after installing.

Test the changes before pushing.