Adding maybe monad in python