title: Importing Ansible module utils
body: <p>The Ansible <a href="http://docs.ansible.com/developing_modules.html" rel="nofollow">module development documentation</a> states:</p>
  
  <blockquote>
    <p>Key parts [of writing an Ansible module] include always ending the module file with:</p>
  
  <pre><code>from ansible.module_utils.basic import *
  main()
  </code></pre>
  </blockquote>
  
  <p>This contradicts the usual practice of grouping imports at the top of the file.  Using <code>import *</code> also prevents lint tools (e.g. flake8) from working effectively, and is <a href="https://stackoverflow.com/questions/2386714">generally regarded as bad practice</a>.</p>
  
  <p>Is there any reason to import in this way, or is Ansible just making their own style recommendation here?</p>