SyntaxFix
Write A Post
Hire A Developer
Questions
Use dict.items(); it can be as simple as following:
ship = collections.OrderedDict(ship.items())