Swap rows and columns of a two-dimensional array of Python list type https://from-locals.com/python-list-transpose/