I just encountered this myself. There seems to have been a change in the USD API or something. Anyway, each place you see the use of the "ConnectToSource", I believe the intention is to use the 4th C++ signature here. Replace pbrShader in the referenced line (here line 41) with pbrShader.ConnectableAPI().
This seemed to fix this problem for myself in the 202_references.py script.