python -c "import pty;pty.spawn('/bin/bash')"

python -c 'import os; os.system("/bin/sh")'

https://gtfobins.github.io/gtfobins/python/