relevant code:
pygame.init() size = (1200, 900) screen = pygame.display.set_mode(size) world = elements.Elements(size) # A - here? world.renderer.set_surface(screen)