Hostname implemented in Python.