Does it quit before it is able to play the sound? Try adding something like pygame.time.delay(1000) at the end to give it a second to play the sound