Google Code Jam practices in Python