a python version of functional js, while focus on lambda