dpath isn't in the OpenStack global requirements list, so it's one of
the things breaking the requirements job. Furthermore, it's only used on
one line, to avoid some trivial Python code. Just get rid of it.
In py3 basestring is no longer valid, and should use `str` instead.
In order to cover py2 and py3, we change to use six.string_types.