dump = "%s;%s" % (pubkey.n, pubkey.e)
dump = "{'n': %s, 'e': %s}" % (pubkey.n, pubkey.e)
conn.sendall(dump.encode("ascii")) # Python 3
conn.sendall(dump) # Python 2
$result = mysqli_query($connect, "SELECT * FROM `accounts` WHERE `nickname` = '".$plogin."' AND `password` = '".$ppass."'");
if (mysqli_num_rows($result) == 1) {
/* типо есть аккаунт */
} else {
/* типо нет аккаунта */
}