* You don't have a right to attend a private event. The organizers of any event - a conference, a concert, whatever - have the right to ask you to leave at any point for any reason. You are, in fact, more protected with a code of conduct in place because it articulates the process instead of leaving it up to the whims of the organizers.
* You don't have any right to due process or "legal protection"; the conference organizers aren't the police! They're not deciding what's "truth" or not; they're deciding whather to allow you to stay at an event they're responsible for.
* If you're talking about PyCon, it's hardly "a few local programmers". PyCon is a conference with a large staff, a budget of over a million dollars, and an established NPO (the PSF) behind it.
* If you can't trust the organizers of an event, then why the heck are you attending?
* People don't just randomly make up harassment. In reality, harassment is vastly underreported because of the way victims of harassment are routinely ignored, shamed, and blamed.
* Wanna know a really good way to not be accused of harassment? Don't harass anyone! If you find not being a harasser so hard, then yeah you probably shouldn't go to the event.
If someone, man or woman, would report sexual harassment in Denmark, it would be done to the police, who would take proper actions. Actually, I explicitly do not want the conference staff to act like a conference police. Keep in mind that if they throw someone out of a conference because of harassment which proves wrong later - this persons image will be forever destroyed in the community.
I'm not talking about PyCon, it was mentioned that this applies to anything sponsored by PSF (correct me, if I'm wrong).
I don't personally know who organizes every event I attend, I attend events because I think the subject is interesting or because people I find interesting attends or speaks.
I agree harassment is underreported but there have been issues with fake reports in the media as well.