[GTALUG] Re-implementing xbattbar in Python