Your indentation looks off here too. Be sure that your text editor is replacing tab characters with four spaces, which is very standard for python code. Turn on visible whitespace in your text editor so you can spot this problem.