def abbrev(str, max_len):
    """
    Return a string  of up to max length.
    adding elippis if string greater than max len.
    """
    if len(str) > max_len: return str[:max_len] + "..."
    else: return str