make warc2warc work in python3