Bibtex parser in python