recover from changes made during Python implementation