deltas is now a C-array instead of a python tuple list