Minimum update to work on Python 3.

I use Manjaro Linux distro with Python 3.3.3 and virtualenvs with Python 2.7.6. This modifications work well with these two Python version.