Change format for hosts.py