some python scripts of sort