Pyt cleanup