def prettify_seconds(self, seconds):
    (m, s) = divmod(seconds, 60)
    (h, m) = divmod(m, 60)
    (d, h) = divmod(h, 24)
    if d:
        return '{} days'.format(d)
    if h:
        return '{} hours'.format(h)
    if m:
        return '{} minutes'.format(m)
    return '{} seconds'.format(s)
def prettify_seconds(self, seconds):
    (m, s) = divmod(seconds, 60)
    (h, m) = divmod(m, 60)
    (d, h) = divmod(h, 24)
    if d:
        return '{} days'.format(d)
    if h:
        return '{} hours'.format(h)
    if m:
        return '{} minutes'.format(m)
    return '{} seconds'.format(s)