Added homework 6 Python solution.