Share extended functionality to prevent re-attaching

Thanks @stof for telling me about this!
[#900] Add arguments and responses for magic methods
Merge pull request #917 from mvriel/900

Fix for #900