There appears to be an issue with the IMU module in M5Flow. The function "Get X Acc" appears to report the orientation of the device, instead of the accelleration. Here is the python code to reproduce it:
from m5stack import *
from m5ui import *
from uiflow import *
import imu
setScreenColor(0x222222)
imu0 = imu.IMU()
while True:
lcd.clear()
lcd.print((imu0.acceleration[0]), 0, 0, 0xffffff)
lcd.print((imu0.acceleration[1]), 0, 20, 0xffffff)
wait_ms(400)
wait_ms(2)
If you run the program, the displayed numbers are between -1 and 1 depending on how you turn the device.
I also tried the C/C++ example for the M5Stack located here: https://github.com/m5stack/M5Stack/blob/master/examples/Basics/IMU/IMU.ino
This example seems to run fine.