closurebuilder.py example