Rhino 5 script (specifically rhinoscriptsyntax.GetPlugInObject) does not work in Rhino 6

This will solve this issue:

http://developer.rhino3d.com/guides/rhinopython/python-troubleshooting-install/