Make it work with Kodi, use plain ElementTree, add most fixes from HJ's repo