Use basestring when checking for dictionary patching.

Fixes https://github.com/testing-cabal/mock/issues/458.
2 files changed