When I compile the Python code below, I get
IndentationError: unindent does not match any outer indentation level
In intellij with python plugin, Ctrl + Shift + Alt to reformat the document fixed the indent/tab/spaces problem