def convert_to_strings(my, array): new = [] for x in array: if not isinstance(array, basestring): x = str(array) new.append(x) return new