python problem 12
haskell!