Bibtex parser in Python