Physics Simulation Using Python Dictionaries