since python2.6 is no longer required remove ordereddict dependency