Python 3 support

Resurrecting my old `py3` branch, since #271 shows there is interest in getting XBlock running on Python 3.
The order of these should be the same as the order in `XBlockSuperclass`.