The Python language uses CGI to execute on a Web page. You must import the "cgitb" library for the Python language to execute and display the results in a Web browser. ... You can display any content and work with dynamic or static pages using Python.