You mean the bind method? That's a copy of the code that I wrote for pandas [to bind methods in Python 3] (https://github.com/pydata/pandas/blob/master/pandas/core/common.py#L80). So yes, I'm sure that that's how to do it :)