Exploiting stack buffer overflows. stack-based buffer overflow.

Exploiting stack buffer overflows. Why my exploit in perl work but it doesn't in python.