modified: pybs.py