py solution to e14
collatz in clojure