changing battery.py file to give a 'mapped' percentage