Python pty.spawn not working

Also it should be

python -c ‘import pty; pty.spawn(“/bin/sh”)’