Implementation of monads in Python.