CS9H Python Code