add unmodified ls.py from neubot repository
ls.py: minor changes

Don't use asyncore for printing the exception; use logging.error
exc_info feature instead.

Tweak some comments and dispose of some blank lines.

Make sure we sort hosts: it is annoying to do that manually.