collet some python codes