Make sheet names version-independent

Also add logging and several flake8 fixes.

Change-Id: I245b303f14fd7b0c085ee1e1aa2245d573458501
Merge "Make sheet names version-independent"