Python script to generate publication lists