Make python 2.4 compatible
Use 2.4 compatible version
obsolete
defaultdict not in 2.4
note it is unfinished