Added condensed version of KeyedList for legacy imports to legacy.py