Done. I'm now using XBlock.load_class and so we can't open classes which aren't XBlocks with this code now.