To get refer.py to work at all these 3 .tex changes