this looks like XY problem: You have a dict and use str as key. why not use a tuple as key in dict in the first place?
chunks = { (0, 0): <content>, (0, 1): <content> ... }and because these are coordinates, you can go a step further and use namedtuple
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs