Pixel sorting experiments written in Python