kwds cleanup in repls