It's an ambiguity problem similar to the dangling else. There's no way to automatically tell the editor that I want the statements to go here or there.
edit: Yes, there's a reformat command in emacs. No, it does not work correctly for Python, because the lack of delimiters means it does not have the information it needs to do the job right.