certdata.txt parser on python