Added Python Code for Homework 5