Splitting an Image into a Grid using Python

Prompt

Result