Change Values In 2d Array Python Transpose Rows