update host.py to include host is a string case