PYTHON SIMULATION OF GRID TIED STORAGE SYSTEM OPERATION