pwtools
Shift all coords in obj such that the atom with index idx is at the center of the cell: [0.5,0.5,0.5] fractional coords.