battery_sim Using PyBaMM to construct an environment to train a RL controller to trade electricity for energy arbitrage and frequency regulation