Adding patch from http://pyyaml.org/attachment/ticket/246/PyYAML-3.10.patch