convert 2d list to string python