Some XBlock classes were being (randomly) incorrectly loaded. This was due to an error in the way the XBlock.load_class method was called. Error was happening randomly because of the cache mechanism in the class loading method. (see PLUGIN_CACHE)