added tbcosc.py