Linux version of batcharge.py