codecs -- the self argument does matter for Python functions (it does not for C functions which most other codecs use).