new_contents: #!/usr/bin/python
  # coding: utf-8
  
  def main():
      module = AnsibleModule(
          argument_spec = dict(
              msg         = dict(type='str',  required=False, default=""),
              changed     = dict(type='bool', required=False, default=False),
              failed      = dict(type='bool', required=False, default=False),
          )
      )
  
      msg = module.params['msg']
      changed = module.params['changed']
      failed = module.params['failed']
  
      module.exit_json(msg=msg, changed=changed, failed=failed)
  
  from ansible.module_utils.basic import *
  main()
  
subject: add mydummy module