Removed superfluous random.shuffle
Optimized away file operations, 11 s -> 0.33 s