solutions to old google code jam problems in python