set appropriate imports of ordereddict for both python versions