The builtin basestring is no more with py3. Fixes issue 5701.

Signed-off-by: Luke Inman-Semerau <luke.semerau@gmail.com>