Fixing uptime segment to be Python 3 compliant