Python 3 support

I've added Python 3 support, while retaining Python 2 compatibility. This requires the installation of [six](https://pypi.python.org/pypi/six) (I've added it to `setup.py`)