Python code for the Coursera course from Dr. Chuck