Fixed the inconsistent use of tabs and spaces

Python gave an error because tabs and spaces were used inconsistently