def acc_callback(data):
    'Handle a (epoch, (x,y,z)) accelerometer tuple.'
    print('Epoch time: [{0}] - X: {1}, Y: {2}, Z: {3}'.format(data[0], *data[1]))
Handle a (epoch, (x,y,z)) accelerometer tuple.
def acc_callback(data):
    
    print('Epoch time: [{0}] - X: {1}, Y: {2}, Z: {3}'.format(data[0], *data[1]))