Update hostname.py

version 0.2 this now works and sets the hostname. it now needs tidying and the argument code changing.