Update bbFunctions.py