Allow XBlock to run under python 3

Should this be named differently?  Now it isn't a metaclass, or it is?