Hack batcharge.py to not not-work in Python 3