When I compile the Python code below, I get
IndentationError: unindent does not match any outer indentation level
To easily check for problems with tabs/spaces you can actually do this:
python -m tabnanny yourfile.py
or you can just set up your editor correctly of course :-)