The partial solution to google python exercise logpuzzle exercise