Python Battery Mathematical Modelling