Use correct method in socket module, gethostname()