I think there was a reason that generate_script_magics ran before `Magics.__init__`. We may need to change how this works now.