Does Python change my string??

The related question is I was using a little shellcode in my python but failed
PS: I was doubting what's is the end charecter of Python String or C string, if the string have the end charecter, how to deal with it? Does this related to this question?
\x49is the same asI?