There is some strange indentation here. Make sure to use only spaces for indentation, and 4 spaces per level. Mixing tabs and spaces will just make everything sad.