When I compile the Python code below, I get
IndentationError: unindent does not match any outer indentation level
If you are using Vim, hit escape and then type
gg=G
This auto indents everything and will clear up any spaces you have thrown in.