def convert_list_of_ints_to_string(array_of_ints): return re.sub('\s+', ',', np.array_str(array_of_ints).strip('[]'))