Changing the debug statement to use ipdb
Refactoring out the shuffling part so it can be reused in several spots
Optional packages for coverage an debugging