add a python lib.py for study.