Pyglet

Pyglet is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications.

[1][2] pyglet runs on Microsoft Windows, macOS, and Linux; it is released under the BSD Licence.

Images, video, and sound files in a range of formats can be done natively but can also be expanded with the libav and ffmpeg libraries.

Multi-level lists are supported and can be created using HTML.

In this example, lines 1-2 import the pyglet module's necessary components.