solutions to google code jam problems in python