from collections import namedtuple

Accelerometer = namedtuple('Accelerometer', ["timestamp", "x", "y", "z"])
Magnetometer = namedtuple('Magnetometer', ['timestamp', 'x', 'y', 'z'])
Gyroscope = namedtuple('Gyroscope', ['timestamp', 'x', 'y', 'z'])
Euler = namedtuple('Euler', ['timestamp', 'x', 'y', 'z'])

Quaternion = namedtuple('Quaternion', ['timestamp', 'w', 'x', 'y', 'z'])

Heading = namedtuple('Heading', ['timestamp', 'h'])

Status = namedtuple('Status', ['magnetometer_enabled',
                               'gyroscope_enabled',
                               'accelerometer_enabled',
                               'gyroscope_resolution',
                               'accelerometer_resolution',
                               'low_output_rate',
                               'heading_streaming',
                               'euler_streaming',
                               'magnetometer_streaming',
                               'quaternions_streaming',
                               'gyroscope_streaming',
                               'accelerometer_streaming'])

[(3, 'collections.namedtuple', 'namedtuple', False, 'from collections import namedtuple\n'), (4, 'collections.namedtuple', 'namedtuple', False, 'from collections import namedtuple\n'), (5, 'collections.namedtuple', 'namedtuple', False, 'from collections import namedtuple\n'), (6, 'collections.namedtuple', 'namedtuple', False, 'from collections import namedtuple\n'), (8, 'collections.namedtuple', 'namedtuple', False, 'from collections import namedtuple\n'), (10, 'collections.namedtuple', 'namedtuple', False, 'from collections import namedtuple\n'), (12, 'collections.namedtuple', 'namedtuple', False, 'from collections import namedtuple\n')]