Python bundles get purged after reloading endpoints

You would need to mount the script as a volume from outside the container tonoverwrite the one in the container. Containers are designed to be indempotent.