Laptop A has python file "file1.py". Computer B has python file "file2.py". I want to remotely enter into Computer B and run the python script file2.py. I am using SCREEN, and below is my code.
import os 
import time
os.system('screen -S Test -d -m /dev/ttyUSB0 57600') 
time.sleep(1)
os.system('screen -S Test -X stuff "file2.py"')   
time.sleep(1)
os.system('screen -S Test -d -r')   
time.sleep(0.25) 
print "done"
 
    