Example code from Games with Pygame at PyGotham 2014