Update hostname.py

Version 0.1 structure of code, should set hostname and hosts file needs testing.