To compile an executable version of MSFS Glass using pyinstaller follow these 4 steps:
Copy the SimConnect.dll file into SimConnect.dllc.
Use the following pyinstaller settings to compile MSFS Glass:
pyinstaller -F --add-data "templates;templates" --add-data "static;static" --add-data "SimConnect;SimConnect" --icon="images/icon.ico" --name="glass_server.exe" glass_server.py