Fix inconsistent use of tabs and spaces in indentation causing TabError under Python 3