Update server.py

Automatic setting up of the root widget returned by the 'main' function call