Update batinterface.py