Flatten Array Of Tuples Python