Change #[pyfunction] and #[pymethods] to use a common call "trampoline" to slightly reduce generated code size and compile times.
#[pyfunction]
#[pymethods]