updated to use new pyb.Accel() object

changed old pyb.accel() function to new pyb.Accel object