changed how ordereddict is imported (python 2.6 support)