This uses the Flask web framework to display a Jinja template to get a users name, then randomly looks up an insult in a json file and displayes users name and insult from json file on a second Jinja template.
A working demo may be available on Pythonanywhere.