I include the pdb with the release build in case someone reports a crash, this will result in line numbers in the call stack which helps in the fault analysis.
Please let me know if you get it working. It did work for me flawlessly for years but now it stopped to keep play states in sync. I haven't investigated any further but you reminded me of the fact that I should...
So far it seems to be working pretty well out of the box. All my existing status from Mediaportal synced successfully to Kodi after installing and authorizing the script. Since then I've watched a couple of TV shows and a movie in Kodi, and the status synced back to Mediaportal fine. Obviously that's only a very limited amount of testing. I'm only syncing one Kodi install and one Mediaportal install at the moment, I have another Mediaportal machine, and possibly another Kodi device to add once I'm happy.
Your pause states should also sync across okay so you can resume watching where you left off. This is useful when about to fall asleep in my living room when watching via MediaPortal and then resume on my SmartTV with Kodi in the bedroom