def rot_center(image, angle):
    """rotate a Surface, maintaining position."""
loc = image.get_rect().center
rot_sprite = pygame.transform.rotate(image, angle)
How do I rotate an image around its center using Pygame?