I think that means it's calling exec () on each line individually. The interpreter doesn't realize that print () is part of that loop. Try not sending EOT on the for loop line. If that works, you're ...
現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする