Update dictns.py

change type compare operation to isinstance. This allows usage of classes derived from dicts / list, like OrderedDict.
Update dictns.py

pep8 for new lines
support for OrderedDict

fix tests, and add tests for ordered dict

Signed-off-by: Pierre Tardy <tardyp@gmail.com>