grep-dctrl -w -F Depends,Recommends -s Source "python-$module"
/var/lib/apt/lists/*_debian_dists_sid_main_binary-amd64_Packages ;
grep-dctrl -w -s Package "python-$module"
/var/lib/apt/lists/*_debian_dists_sid_main_source_Sources
where python-$module is the *binary* package name.
This finds runtime Depends/Recommends, and all mentions in the Sources
index (Build-Depends*, Testsuite-Triggers, and the package itself):
Outputs only this package's source name => ready to be removed
Outputs other source package(s) => not ready yet
Outputs nothing => package doesn't exist (either it's already been
removed, or you mis-spelt it)
(Previous suggestions in this thread were "apt-cache rdepends
python-$module ; reverse-depends -b python-$module" (can be slow) or
"dak rm -R -n -b python-$module" (DDs only); those both ignore
autopkgtest depends.)