It does say in the code of conduct that you shouldn't handle it yourself. Also, due to "offensive verbal comments related to gender, sexual orientation, disability, physical appearance, body size, race, religion, sexual images in public spaces" I'd agree that what these men were doing was against the code of conduct.
However, she did report it to pycon. She tweeted about: "Can someone talk to these guys about their conduct? I'm in lightning talks, top right near stage, 10 rows back". She also says that she "began to contacting the PyCon staff via text message".
What she didn't have to do is take pictures of them without their permission and post their pictures on her public twitter feed. That is the part that steps over the line in my opinion.
Agreed. What she did was sub-optimal.
Please be kind and indicate where conference organizers ask you to:
1) post the picture on a world wide forum (twitter)
2) contact them via public channel (twitter)
Thank you
Other commenters here noted this before you did, without the false courtesy.
"Report the harassment incident (preferably in writing) to a conference staff member"
If she had asked them to quiet down, it could have turned into a pissing match. Or maybe they would have complied. You never know how it's going to play out.