Properly fills the `module=` attribute of declarative modules child `#[pymodule]` and `#[pyclass]`.