module hangs at "getting output with communicate()"

while trying to get a new module for editing aix config files running the following occurs. at first run the entries gets successfully added to the file, but at the second run (check mode ?) the module hangs with the mentioned error.
not sure how to proceed here?

f

repo with actual code →

https://github.com/flynn1973/ansible_aix_stanza

ANSIBLE_DEBUG = 1

`
Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/aix_stanza.py
18686 1542381145.28827: transferring module to remote /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/aix_stanza.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-18580WZQLvb/tmpBisKTQ TO /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/aix_stanza.py
18686 1542381145.28874: done transferring module to remote
18686 1542381145.28890: _low_level_execute_command(): starting
18686 1542381145.28895: _low_level_execute_command(): executing: /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/ /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/aix_stanza.py && sleep 0’
18686 1542381145.28900: in local.exec_command()
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/ /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/aix_stanza.py && sleep 0’
18686 1542381145.28907: opening command with Popen()
18686 1542381145.29230: done running command with Popen()
18686 1542381145.29261: getting output with communicate()
18686 1542381145.29711: done communicating
18686 1542381145.29720: done with local.exec_command()
18686 1542381145.29739: _low_level_execute_command() done: rc=0, stdout=, stderr=
18686 1542381145.29749: _low_level_execute_command(): starting
18686 1542381145.29761: _low_level_execute_command(): executing: /bin/sh -c ‘/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/aix_stanza.py && sleep 0’
18686 1542381145.29770: in local.exec_command()
<127.0.0.1> EXEC /bin/sh -c ‘/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1542381145.04-246550469721570/aix_stanza.py && sleep 0’
18686 1542381145.29780: opening command with Popen()
18686 1542381145.30060: done running command with Popen()
18686 1542381145.30082: getting output with communicate()

`

file with added values:

`

fideloper22:
bla = blaa
SYSTEM = LDAP
registry = LDAP

fideloper23:
bla = blaa
SYSTEM = LDAP
registry = LDAP

fideloper24:
bla = blaa
SYSTEM = LDAP
registry = LDAP

`