Allow XBlock to run under python 3

I would have kept the original name.