Sift rewrite

I have added some functionality to 'sifting.py' that was required for the GBNCC (?) pipeline to work. (see emails from early Oct.)