Fixed zipfile and tarfile lines readout in python3