In the middle of addressing pull request comments. This is a safety commit in case I have to revert some changes I'm about to make.
Removed the use of random.choice()
Removed run_wrapped() and replaced its functionality with patch.dict():