Taking care of 2 comments: Usig cast to intX and PyDecRef of cpu_indices_arr