Quick Python solution to #56.