Fix bugs in 'sifting.py'.

Objects were renamed, but not all code was updated.