Update listec2hosts.py

clean up for clarity