Python Battery Graph