from itertools import chain
A = [[1,2], [3,4]]
print list(chain(*A))
