some python codes