Control the display with Python