All of the code above was moved into the Python path, in a new module below. It was not altered.