took out the towlower() loop in the get_fullhostname() function. This preserves the mixed or uppercase letters in the hostname so that string comparisons for the real host name work.