python: Simplify wrapping glue.