Sorry my fault, I mis-read them as objects and they're indeed function. But still I don't like this syntax since it is confusing. Instead define normal functions via def <funcname>(): and implement their bodies via lambda if necessary.