Rhino 7 with PyCharm

You might have better luck using Rhino.Inside Python for this type of work.