Update list.py

fix double output