I created this demo in 2013 as a follow-up to pyglet-asteroids. It isn't golf, but the ball does bounce off the walls while experiencing gravitational attraction to the rocky spheres.
pip3 install pyglet
python3 play_game.py
All assets are my own work. See res/README.md.
Have fun and feel free to study the code :)