Solutions to previous year Google Code Jam problems in Python