new imu class & better python syntax