You've got a mix of 4-space and 2-space indents here.  Please use 2-space indents consistently.  That is a style guide issue, though I don't know that we have any tools to detect deviations from that style. Ideally your editor will assist you with this.