Кто знает помогите переписать код, написанный на php в код понятный python.
<?php
require_once(“security_mod.php”);
require_once(“config.php”);
$query = “SELECT * FROM crm
ORDER BY name”;
$usr = mysql_query($query);
if (!$usr) exit(mysql_error());
if(mysql_num_rows($usr) > 0)
{
echo “<form method=post>”;
echo “<table border=1>
<tr>
<td> </td>
<td>Имя</td>
<td>Пароль</td>
</tr>”;
$i = 0;
while($user = mysql_fetch_array($usr))
{
echo "<tr>
<td><input type=checkbox name=user
value=$user></td>
<td>$user</td>
<td>$user</td>
</td>“;
$i++;
}
echo ”</table>“;
echo ”</br><input type=submit name=send value=Удалить>“;
echo ”</form>";
}
if(!empty($_POST))
{
$temp = array();
foreach($_POST as $id_user)
{
if(preg_match("|^+$|",$id_user))
{
$temp = $id_user;
}
}
$query = “delete from crm
where id_user in (”.implode(“,”,$temp).“)”;
if(mysql_query($query))
{
echo"<HTML><HEAD>
<META HTTP-EQUIV='Refresh' content='0; URL=$_SERVER'>
</head></HTML>";
}
}
?>