add Functional programming in Python