Fixed TabError: inconsistent use of tabs and spaces in indentation in Python 3