Simplified imports. Switched to "with open(...) as f" style. Slight rewrite of ee.EEData.calc_n.