duped python script with a couple of small changes for testing