ME matlab and python code for aluminum cells