AttributeError: 'tuple' object has no attribute 'detach'

Thanks for your reply. I am sorry, I think I do not understand fully what you mean.