Some python codes.