IMHO ..using element tree to parse the simple plugin.xml just to get the version is probably overkill in the extreme. You can more easily use regular expressions as I did here:
https://www.mobileread.com/forums/sho...2&postcount=19
See the _version_pattern and related code.
KevinH