properly check 'have_pyrepl' before issuing warning