Handle more import exceptions involving xml.

See http://bugs.python.org/issue14988
4 files changed