title: Why does from scipy import spatial work, while scipy.spatial doesn't work after import scipy?
body: <p>I would like to use <code>scipy.spatial.distance.cosine</code> in my code. I can import the <code>spatial</code> submodule if I do something like <code>import scipy.spatial</code> or <code>from scipy import spatial</code>, but if I simply <code>import scipy</code> calling <code>scipy.spatial.distance.cosine(...)</code> results in the following error: <code>AttributeError: 'module' object has no attribute 'spatial'</code>.</p>
  
  <p>What is wrong with the second approach?</p>