def sizeStr(size):
    """Returns formatted string of a byte size
    Args:
        size (int): size in bytes
    Returns:
        string: Size with appropriate byte suffix
    
    """
    prefixes = ["B", "KB", "MB", "GB", "TB"]
    exponent = 0
    while size > 1024:
        size /= 1024
        exponent += 1
    precision = 3 - len(str(int(size)))
    form = "{:0." + str(precision) + "f} {}"
    return form.format(size, prefixes[exponent])