Renamed iter() to atoms() and implemented iter() in a way consistent with python dicts