sorted py doc