update lib import section

- try-except block has been added in order to import old elementtree lib if xml.etree.ElementTree does not exist
- update try-except blocks for error type sensitivity