Coursework for python class.