python qapplication exit