Update hosts.py