I can't fully interpret the code (but thanks for posting it), but from what I see in my late games something seems to interfere with the intended effect.
I'm in the very late phase of a King game (5 techs from Nanotech) . I'm actually going for a SV but I started trying for CV initially and I'm influential over 6 out of 11 civs (the other four have been fully conquered), and have 3x the tourism as anyone (200, raw. My closest rival I'm already influential over has 70). I won't win culturally because I avoid building NVC (I'm Venice, nearly all cultural stuff is in my capital...) and researching the Internet on purpose, and I've refused to renew the deal where I paid 1 gpt for OB and stopped sending my TR to the top cultural civ I'm now popular (61%) with, otherwise I will win culturally before I finish my spaceship and I want to send Venice in space this time. If all works out, I'll win a SV one civ away, and probably not by that many turns, from also winning culturally.
The higher tourism Civs keep coming to ask for OB and send TR to me perhaps in part for the tourism bonus, so that aspect works fine and better than pre-patch I would say. But the top 3 cultural civs, friendly to me, still agree to let me buy OB from them for 1-2 gpt or less (I just don't do it, and have let the deals lapse without renewal once popular with them) even though I will definitely win culturally if I accepted.
So that part is probably not working as well as likely intended. I'm very friendly and share ideology with all three, so maybe that outweigh too much their fear of my cultural victory? Edit: (actually they're not "friendly" they're all afraid of my nukes).
Or maybe it's only when I build (but I won't) the NVC or Internet they'd freak and refuse OB anymore but if that is so it would be too late to have any hope to stop me. Right now two Civs are going for domination, possibly, but they're many capitals short of winning. Another is going for a SV but is building Apollo when I'm rushing along the bottom of the tree to Nanotech, and I'm done. Only one civ maybe hopes for cultural victory, but he's influential with two and even though I'll leave him the opportunity to build CN tower for his wide civ, and Sydney Opera House, but I've run away with science now and he's many techs from there.
That's King (and I should really be playing Emperor or even Immortal when I play Venice at this point), but the only thing I've found the AI more competitive with since the patch is with its science and city placement. In my three last games I've run away by the Renaissance, then a few civs suddenly expanded (settling or conquest), put up universities pronto and caught up or so with me in Industrial/modern and it's by conquering a capital, puppetting 2 more 16 pop CS (I'm at my widest Venice ever, and by a long shot, with 8 puppets and 6 conquered cities), with GS, RA, getting RL in 14 cities earlier then them that I finally run away for good, around mid-Atomic or so, with another jump with Hubble with a saved GE. I'm at 87% of the tree, with the average now at 71%... When I reached Modern I was #2 at 2% behind the leader and 2 other civs were on par with me...
As for the AI making diplo win or cultural win more difficult by refusing OB and such, I don't feel the effects of the changes much. Not quite enough to my taste anyway.