How to fix TabError: inconsistent use of tabs and spaces in indentation in Python