def prettyTime(time : int) -> str:
    """takes a time, in seconds, and formats it for display"""
    m, s = divmod(time, 60)
    h, m = divmod(m, 60)
    s = round(s, 2)
    if h: return "%s hour(s), %s minute(s), %s second(s)" % (int(h),int(m),s)
    else: return "%s minute(s), %s second(s)" % (int(m),s)