contrib: update contribs to use `self` in FFI