Remote command execution in python using paramiko that supports arbitrary input