Fix indentation bugs

If the project mostly uses an indentation of 4 spaces (for Python files), then:
* do not mix tabs and spaces
* indentation of every line must be a multiple of four