Ah, yes, and there's no ordereddict on python 2.6 :( You could probably move this to be an attribute of the class but given there'll be only one type selector it's not that important.