use python ordered dictionary