from itertools import chain
mapa = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]
dicionario_mapa = {}
for posicao, valor in enumerate(chain(*mapa)):
dicionario_mapa[posicao+1] = valor
print(dicionario_mapa)
ZnJvbSBpdGVydG9vbHMgaW1wb3J0IGNoYWluCm1hcGEgPSBbWzEsMiwzLDRdLFs1LDYsNyw4XSxbOSwxMCwxMSwxMl0sWzEzLDE0LDE1LDE2XV0KZGljaW9uYXJpb19tYXBhID0ge30KICAgIApmb3IgcG9zaWNhbywgdmFsb3IgaW4gZW51bWVyYXRlKGNoYWluKCptYXBhKSk6CiAgICBkaWNpb25hcmlvX21hcGFbcG9zaWNhbysxXSA9IHZhbG9yCiAgICAKcHJpbnQoZGljaW9uYXJpb19tYXBhKQ==
{1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, 15: 15, 16: 16}