Snake Game with Sprites Python

I was trying to make a game of Snake (I'm a Beginner / Advanced, so I can try to learn the basics of the new things I'm learning), and I tried to do that sprites.
First and foremost, I want to create a checkered background from scratch, like "squares" in certain places "blit" (this does not work with sprites I can see)
Second, I want the "body parts" of the serpent to follow him. I want this to happen when every part of the body follows it.
Here is the code I have so far, I am very open to criticism!

#Welcome in my SNAKE game!

Import Pygame

clock = pygame.time.Clock ()

PURPUR = (255, 0, 255)
RED = (255, 0, 0)
GREEN1 = (191, 255, 0)
GREEN2 = (0, 255, 0)
BLUE = (0, 0, 255)
BLACK = (0, 0, 0)

FPS = 30

pix = 50

Width = 12 * pix
Height = 12 * pix

Class Head (pygame.sprite.Sprite):
def in it(even):
pygame.sprite.Sprite.in it(even)
self.image = pygame.Surface ((pix, pix))
self.image.fill (PURPLE)
self.rect = self.image.get_rect ()
self.rect.x = 4 * pix
self.rect.y = 6 * pix
self.speedx = 0
self.speed = 0

def update (self):
self.rect.x + = self.speedx
self.rect.y + = self.speed

Class Apple (pygame.sprite.Sprite):
def in it(even):
pygame.sprite.Sprite.in it(even)
self.image = pygame.Surface ((pix, pix))
self.image.fill (RED)
self.rect = self.image.get_rect ()
applex = 7
Appley = 7

def position (self):
self.rect.x = applex * pix
self.rect.y = matching * pix

Player = Head ()

Class Body (pygame.sprite.Sprite):
def in it(even):
pygame.sprite.Sprite.in it(even)
self.image = pygame.Surface ((pix, pix))
self.image.fill (BLUE)
self.rect = self.image.get_rect ()
self.speedx = 0
self.speed = 0
self.rect.x = player.rect.x – pix
self.rect.y = player.rect.y
self.previous = [0, 0]

def follow (yourself):
self.previous = [self.speedx, self.speedy]
    self.rect.x + = self.speedx
self.rect.y + = self.speed

all_sprites = pygame.sprite.Group ()
body_list = pygame.sprite.Group ()
Body = body ()
body_list.add (body)
Apple = apple ()
all_sprites.add (player)
all_sprites.add (apple)
all_sprites.add (body)

imag = pygame.image.load ("dragon-copy.png")
imag = pygame.transform.scale (imag, (pix, pix))

head = imag.fill (PURPLE)
body = imag.fill (BLUE)

Apple = imag.Fill (RED)

pygame.init ()
pygame.display.set_caption ("Sneaky Snake")

screen = pygame.display.set_mode ((width, height))

background = pygame.image.load ("Green_Checkered_Background.png")
background = pygame.transform.scale (background (width, height))

snakelist logo CNRS logo INIST []

Key = [False, False, False, False]
Iteration = 5
Parts = 3
savevalues ​​= [0, 0]

Running = True

during the race:

clock.tick (15)

for an event in pygame.event.get ():

if event.type == pygame.QUIT:
Running = wrong

If event.type == pygame.KEYDOWN:
If event.key == pygame.K_q:
Running = wrong

If event.key == pygame.K_w:
key[0] = True
elif event.key == pygame.K_UP:
key[0] = True
elif event.key == pygame.K_a:
key[1] = True
elif event.key == pygame.K_LEFT:
key[1] = True
elif event.key == pygame.K_s:
key[2] = True
elif event.key == pygame.K_DOWN:
key[2] = True
elif event.key == pygame.K_d:
key[3] = True
elif event.key == pygame.K_RIGHT:
key[3] = True

if player.rect.x <0:
Running = wrong
if player.right.y < 0:
    running = False
if player.rect.right > Width:
Running = wrong
if player.rect.bottom> height:
Running = wrong

if iteration == 0:
if key[0]:
player.speedy = -1 * pix / 5
player.speedx = 0
Elif key[1]:
player.speedx = -1 * pix / 5
player.speedy = 0
Elif key[2]:
player.speedy = pix / 5
player.speedx = 0
Elif key[3]:
player.speedx = pix / 5
player.speedy = 0
Iteration = 5
Key = [False, False, False, False]

all_sprites.update ()

screen.blit (background, (0, 0))

all_sprites.draw (screen)

pygame.display.flip ()

if iteration> 0:
Iteration - = 1