basestring do not work in python 3

change basestring for str , now working in python 3