def humanize_seconds(secs, prefix=''):
 for (unit, divider, formatter) in TIME_UNITS:
  if (secs >= divider):
   w = (secs / divider)
   punit = (((w > 1) and (unit + 's')) or unit)
   return ('%s%s %s' % (prefix, formatter(w), punit))
 return 'now'

def humanize_seconds ( secs , prefix = '' ) : for ( unit , divider , formatter ) in TIME_UNITS : if ( secs >= divider ) : w = ( secs / divider ) punit = ( ( ( w > 1 ) and ( unit + 's' ) ) or unit ) return ( '%s%s %s' % ( prefix , formatter ( w ) , punit ) ) return 'now'
show seconds in human form .