I'm not sure why you need to set it to `'NULL'`.  If you set it to `None` then `atMap[index] = i` will work.