Tiny lambda compiler in Python