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