Replace basestring with six.string_types

Partial implement: blueprint py33-support

Change-Id: Ibf1c63d407698f37b333da8f90bbdedbd9512c75