Aligning the access of array index to django style