Fix Python 2.4 compatibility of frozendict