def bytes_to_str(byte_count):
    """pretty print string for bytes"""
    if byte_count > 1024 * 1024 * 1024:
        return str(int(byte_count / 1024 / 1024 / 1024)) + "GiB"
    if byte_count > 1024 * 1024:
        return str(int(byte_count / 1024 / 1024)) + "MiB"
    if byte_count > 1024:
        return str(int(byte_count / 1024)) + "KiB"
    return str(int(byte_count)) + "B"