I never used the Python binding, I just know it exists^^
As for the second option, you just need to be familiar with networking in Godot and Python. You'd open a socket (TCP maybe) to connect the two ends together. Either of them can be server, the other client. I'm sure Python has modules for that, and Godot has TCP classes exposed to GDScript.