api.py: printing unit hostname

this way we can easily show when the application is running on multiple
units