title: Class variables - missing one required positional argument
body: <p>I have two scripts. The first containing a class, with class variables defined and a function using those class variables. The second script calls the class and function within a function of it's own.</p>
  
  <p>This sort of set up works fine for functions inside a class, however adding class variables is causing me the below error. Can anyone explain why, please and what I need to do to fix?</p>
  
  <p>Thanks</p>
  
  <p>obj1.py:</p>
  
  <pre><code>class my_test_class():
  
      def __init__(self):
  
          self.test1 = 'test1'
          self.test2 = 'test2'
          self.test3 = 'test3'
  
      def test_func(self, var):
  
          new_var = print(var, self.test1, self.test2, self.test3)
  </code></pre>
  
  <p>obj2.py</p>
  
  <pre><code>from obj1 import *
  
  
  def import_test():
  
      target_var = my_test_class.test_func('my test is:')
      print(target_var)
  
  import_test()
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "G:/Python27/Test/obj2.py", line 9, in &lt;module&gt;
      import_test()
    File "G:/Python27/Test/obj2.py", line 6, in import_test
      target_var = my_test_class.test_func('my test is:')
  TypeError: test_func() missing 1 required positional argument: 'var'
  </code></pre>