I should also ask, where is the preferred spot to put this, utils.py, push_to_lms.py or a new file?  The organization was largely based on them previously being shell scripts, and I hadn't put much thought into where it should go, but I agree with it going somewhere other than the command.