Add parse_host_range function to dish.py