Yes, there was a much-publicised donglegate in Pycon 2013. But there was also a waiting line for the women's bathroom in Pycon 2015. Have you seen a waiting line for the women's bathroom at any other tech conference? And guess what, both Adria Richards and the man whose name I can't find quickly via a Google search were there at Pycon 2015 and the CoC was updated to indicate how to better handle incidents.
Overall, Python has done a great work in being a friendlier place, and its insistence upon the code of conduct has in all probability helped.