Use 'basestring' instead of str/unicode

Bug: 1054622