Gateway Shared Script not updated after save an Publish

There are also possible problems with python object lifetimes, particularly if you are importing from shared or project scripts instead of spelling them out everywhere: