make ordereddict requirement only for < 2.7