Update hostcheck.py

cleanup and more logging