[Python-Dev] Optimizing list.sort() by checking type in advance