Python pty.spawn not working

Well he’s using /bin/bash, but I did try both, same result unfortunately