Python Sort Method Algorithm Example Problem