Python 3 support

Resurrecting my old `py3` branch, since #271 shows there is interest in getting XBlock running on Python 3.