Added Python solution to Homework 7.