A previous version of emacs’ python-mode would unindent the line after a pass or retrun keyword, which end the current block. The current version does not do so. The attached patch restores this behavior.