I think that this script needs some kind of output to stdout indicating progress. We generally use https://docs.python.org/3/library/logging.html for this.