Your indentation seems a little bit off here. Be consistent when indenting code. Make sure that you have tabs set up as soft tabs with 2 spaces in sublime.