tmux and battery.py to support both tmux and screen