whiptail is a library that will let you present a variety of questions or display messages using dialog boxes from a Python script.
You can set up server.py to run as a systemd service. This will ensure that the server restarts automatically in case of an accidental close or machine restart. Steps to Set Up server.py as a systemd ...