Renumbered Python solutions.