Your everyday sorting algorithms, in Python