def accelCallback(back_front, portrait_landscape, tap, shake):
  if tap == 1:
    print "Tap Detected"
  if shake == 1:
    print "Shake Detected"
callback_funtion : has to take(back_front, portrait_landscape, tap, shake) 
dataset/ETHPy150Open graycatlabs/PyBBIO/examples/mma7660_test.py/accelCallback