Porting Suffle to python 3