title: cannot import my util module
body: <p>I'm using <code>sklearn.externals.joblib</code> to persist a classifier model to the disk which in reality uses <code>pickle</code> module at lower level.</p>
  
  <p>I create a custom <code>CountVectorizer</code> class named <code>StemmedCountVectorizer</code> and saved it in <code>util.py</code>, then used it in the script for persisting the model</p>
  
  <pre><code>import util
  
  from sklearn.externals import joblib
  
  vect = util.StemmedCountVectorizer(stop_words='english', ngram_range=(1,1))
  
  bow = vect.fit_transform(sentences)
  
  joblib.dump(vect, 'vect.pkl') 
  </code></pre>
  
  <p>This my project structure using Flask:</p>
  
  <pre><code>   |- sentiment/
       |- run.py
       |- my_app/
         |- analytic/
           |- views.py
           |- util. py
           |- vect.pkl
  </code></pre>
  
  <p>I run the app with <code>python run.py</code> and try to load the persisted object with <code>joblib.load</code> in <code>views.py</code> but it does not work, I imported the <code>util</code> module but I receive the error:</p>
  
  <pre><code>ImportError: No module named util
  </code></pre>
  
  <p>can anybody give a solution to this? thanks</p>