Uptime of the host machine

def uptime():
    """Uptime of the host machine"""
    from datetime import timedelta

    with open('/proc/uptime', 'r') as f:
        uptime_seconds = float(f.readline().split()[0])
        uptime_string = str(timedelta(seconds=uptime_seconds))

    bob.says(uptime_string)