remove useless variable
remove useless package
change  list to tuple is better
make code more pythonic