Fix typo pointed out by @astrofrog
Fix for use of basestring

basestring is incompatible with py 3.2 - use six.string_type instead