Made the pymysql library import optional to get rid of some import errors. The xml parsing still works.