Update dictns.py

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