https://lowcostwallchargeripod.blogspot.com/2023/06/python-code-works-fine-first-time-but.html
Python Code Works Fine First Time, But Fails Second Time