Fix some uncovered code blocks emitted by #[pymodule], #[pyfunction] and #[pyclass] macros.
#[pymodule]
#[pyfunction]
#[pyclass]