requisite index changes were made to the c and python code so that the indexing
methodology (z,y,x) was corrected