svg.render_cairo(ctx)
screen = pygame.display.get_surface()
image = pygame.image.frombuffer(data.tostring(), (WIDTH, HEIGHT), 'ARGB')
screen.blit(image, (0, 0))
pygame.display.flip()
clock = pygame.time.Clock()
while True:
    clock.tick(15)
for event in pygame.event.get():
    if event.type == pygame.QUIT:
        raise SystemExit
SVG rendering in a PyGame application