title: Python: Drag a scipy.stats object through a python function
body: <p>I'm trying to assign a <code>scipy.stats</code> <code>rv</code> object in a function and return it:</p>
  
  <pre><code>def Prior():
      priorObj = norm(loc=1, scale=1)
      return priorObj
  </code></pre>
  
  <p>How can I keep the <code>rv</code> object including its methods and access it via </p>
  
  <blockquote>
    <p>Prior.pdf()</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>Prior.cdf(0.5)</p>
  </blockquote>
  
  <p>Do I have to copy the object in order to be able to pass it through a python function?</p>