fix: python 2.6 compatibility (ordereddict)

Commit bfcbc0839b8609d9ab7c68fd42da41fa6092232d broke python 2.6 compatibility. Here is the fix.