Create a python script to generate a hosts file