Python cleanup