Yet another stab at BeforeLoadScriptFailed in py3