python wrapper for the IMU