_product to np.prod
complex_array_to_rgb also for zero array
division to int division (python3 compatibility)
sequence_to_latex as a separate function