Revert "Update pendulum.py (#2444)" (#2475)
Revert "Update pendulum.py (#2444)" (#2475)

This reverts commit 7869eca817985b971771a8650a3d4520f719007c.
Farama-Foundation/Gymnasium,Farama-Foundation/Gymnasium