Update hostcheck.py

errors fixed