lib.py: add yield usage.