added tests test_hostname_is_eventually_assigned & fixed bug
fixed unittests, better exception during hostname assigning, flake8
added help_text to hostname