Python script to connect to ssh and run commands in linux