Support Ordered Dicts + Fix Missing Import for Improperly Configured Exception

* Fix Missing Import for Improperly Configured Exception
* Support Ordered Dicts