Indentation problem here.

I know there were earlier comments about indentation. You need to make sure that you are always using spaces, not tabs, for indenting. You should be able to configure your code editor to do that for you. 

For Python code, all indents should be 4 spaces long.