Remove reference to 'basestring' (Python 3 compatibility).