Support Python 3

Python scripts are modified to support Python 3.x syntax. They are still
compatible with Python >= 2.6. The configure script is modified to
make sure that we have Python >= 2.6. The requirements in INSTALL.md are
also modified.