some python codes and fast quicksort