Pure anonymous lambda recursive function in python