I've tried to follow Jeff Jetton's lead with the comments and suggestions for improvement in the Python port.