Inverts the rows and columns of spreadsheet. Inspired by Al Sweigart's Automate the Boring Stuff with Python: Chapter 12.