Python homework for spring 2014 course