How to disable registration of stdr output in ansible

Hi,
I have developed a custom module for ansible using python pycurl lib. Instead of registering the returned response. The stdr output is being registered. Could anyone help me on this.

https://stackoverflow.com/questions/51194661/cannot-register-a-variable-in-ansible-since-command-output-is-registered-already