functional.py - functional programming in Python