Currently, imported data from import_data_file returns a homemade data object named objdict. This can be safely removed and replaced with the use of namedtuples, which offer the same functionality, namely, the ability to call fields as attributes, e.g. data.x instead of data['x'].