MainWindow: Re-add sys import

Spotted by Laruent Bigonville