<!-- get.html -->
<!DOCTYPE HTML>
<html lang="ru">
<head> <meta charset="UTF-8">
<title>Пример с радиокнопками</title> </head>
<body>
<form method="POST" action="cgi-bin/1.py">
<fieldset>
<legend>Языки программирования</legend>
PHP<input type="radio" name="cat" value="PHP" checked>
Java<input type="radio" name="cat" value="Java">
Python<input type="radio" name="cat" value="Python">
<input type="submit" value="Отправить">
</fieldset>
</form>
</body>
</html>

#!C:\Users\1\AppData\Local\Programs\Python\Python35-32\python.exe
#1.py
import cgi
data = cgi.FieldStorage()
answer = data.getvalue('cat')
print('Content-type:text/html\r\n\r\n')
print('<!DOCTYPE HTML>')
print('<html lang="ru">')
print('<head>')
print('<meta charset="UTF-8">')
print('<title>Результат работы Python-скрипта</title>')
print('</head>')
print('<body>')
print('<h1>', answer, '</h1>')
print('<a href="/get.html">Вернуться</a>')
print('</body>')
print('</html>')