COFFEE: change creation of directories (MPI safe)
Python 2.6 compatibility for OrderedDict