Added solution to problem 41 in python.
Added solution to problem 39 in haskell.
Added solution to problem 39 in python.