ybs/ybsutils.py