def normalize_file_size(size):
    """Turns bytes to KB, MB, GB or TB"""
    step = 1000  # Recommended by the International System of Units(SI). Also Linux uses it,so I just went with the flow
    scale = ['', 'K', 'M', 'G', 'T']
    n = 0
    while size > step:
        size /= step
        n += 1
    return size, scale[n] + 'B'