title: Pythonian structure?
body: <p>I'm someone that is semi-well versed in MATLAB, but am trying to move those skills to Python in hopes of future job prospects. For example, when performing machine learning, I enjoy MATLAB because I can make my function clean looking as below for example:</p>
  
  <pre><code> main.m
   ------------
   prescreen_fn(directory,threshold) %a prescreen function that is run
   plot_prescreen_hits(directory) %plot and print prescreen hits
   extract_features(directory,fft_size) %extract features from prescreen hit locations
   generate_train_test(directory) %parse training and testing data
   SVM_train_test(directory) %perform SVM training and testing
   -----------
  </code></pre>
  
  <p>Well, you get the point. It's nice to have a clean main function whereby it's easy to pass off variables defined by a user, etc. </p>
  
  <p>The problem is I don't know the best way to do this in python. I've read all over stack exchange how it's bad to call python script from other scripts and even then passing of variables is difficult. Also, I'm not wanting to have some massive script where I define lots of python code above and then call them below in the same script. </p>
  
  <p>Apologies if this is very vague, but the general structure of how python "should" look is confusing me</p>
  
  <p>Thanks</p>