title: Importing classes vs importing definitions python
body: <p>I have been using python for a while and there is something that I'm missing.</p>
  
  <p>When importing a module, is there any difference if the module contains a class, or just definitions. For example, i have the following two modules:</p>
  
  <pre><code>def hello():
      print("hello")
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>class Hello():
      def hello():
          print("hello")
  </code></pre>
  
  <p>And I import it from another module</p>
  
  <pre><code>import module_name
  
  module_name.hello()
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>import module_name
  
  Hello = module_name.Hello()
  Hello.hello()
  </code></pre>
  
  <p>Is there any difference in the code? </p>
  
  <p>What if a want to make parallel execution? Would i have any issue if I just import the definition?</p>