Update hostcheck.py

script is now object oriented