If you want to translate
$_POST
can be written in python as
import cgi
form = cgi.FieldStorage()
My candid advice, just stick with php don't do it. But if you must! Make sure you have a fresh backup, because you can be left with a broken web platform.