updated widget to use ordereddict python package