python execute interactive shell command