Hello,
I have two reason for this question.
Can python{3} force my ssh connection to close? From the Raspberry pi side.
ie. If there is a intruder I call a python command and it closes all but my connection.
ie2. I have python shell running when I log in. if I type exit() the raspberry pi just resets the python shell. if I type import Quit the ssh connection ends.