basically instead of using import pygame and pygame.surfarray you have to `import pygame.surfarray`