Cairo under Pygame

If anyone is considering using Cairo for graphics, I came up with a method for using it under Pygame. It's the first block of code here: http://www.pygame.org/wiki/CairoPygame.