Some program writing by python