I have an array created by using
array1 = np.array([[25, 160, 154, 233], [61, 244, 198, 248], [227, 226, 141, 72 ]
This one-liner should do the job:
print '[' + '],\n['.join(','.join(hex(n) for n in ar) for ar in array1) + ']'