Fixup c extension

Apparently methods defined on a module will always take
self as the first argument, much as python handles instance
methods.