def humanise_bytes(bytes):
    """
    Returns humanised tuple of a number, typically bytes.

    For example, (1, 'MB') for 1'000'000 bytes.
    """
    if bytes >= 1e12:
        return (bytes/1e12, 'TB')
    elif bytes >= 1e9:
        return (bytes/1e9, 'GB')
    elif bytes >= 1e6:
        return (bytes/1e6, 'MB')
    elif bytes >= 1e3:
        return (bytes/1e3, 'KB')
    elif bytes > 1:
        return (bytes, 'bytes')
    else:
        return (bytes, 'byte')