functional programming python lib.