some python scripts for classification