reincorporated digbc.py file (had been deleted accidentally on a previous merge)