changed python process kills and cleaned up cmake stuff