Setting instance method attributes in Python 3

Saving pull request from Bitbucket (https://bitbucket.org/agr/ropemacs/pull-request/8/setting-instance-method-attributes-in)

@emhs any more comments on this?