python shell window - cleanup