title: Import class from another python script
body: <p>This is <code>algorithmia_utils.py</code> file with Class <code>AlgorithmiaUtils</code></p>
  <pre><code>class AlgorithmiaUtils:
  
  def __init__(self, api_key, username, algo_name, local_dir):
      self.api_key = api_key
      self.username = username
      self.algo_name = algo_name
      self.local_dir = local_dir
  
      self.algo_namespace = f&quot;{self.username}/{self.algo_name}&quot;
      self.algo_script_path = &quot;{}/{}/src/{}.py&quot;.format(
          self.local_dir, algo_name, algo_name
      )
      self.dependency_file_path = &quot;{}/{}/{}&quot;.format(
          self.local_dir, algo_name, &quot;requirements.txt&quot;
      )
  
      self.algo_client = Algorithmia.client(self.api_key)
  
  def upload_model_to_algorithmia(
      self, local_path, algorithmia_data_path, model_name
  ):
      if not self.algo_client.dir(algorithmia_data_path).exists():
          self.algo_client.dir(algorithmia_data_path).create()
      algorithmia_path = &quot;{}/{}&quot;.format(algorithmia_data_path, model_name)
      result = self.algo_client.file(algorithmia_path).putFile(local_path)
  </code></pre>
  <p>I want to use the function <code>upload_model_to_algorithmia</code> from another script.</p>
  <p>Thus, I'm trying:</p>
  <pre><code>import Algorithmia
  import algorithmia_utils as algo_utility
  </code></pre>
  <p>And to call the function:</p>
  <pre><code>algo_utility.AlgorithmiaUtils.upload_model_to_algorithmia(
      local_path = local_path, 
      algorithmia_data_path = algorithmia_data_path, 
      model_name = model_name)
  </code></pre>
  <p>Which is returning the error:</p>
  <pre><code>TypeError: upload_model_to_algorithmia() missing 1 required positional argument: 'self'
  </code></pre>
  <p>Am I supposed to add an additional argument or have I not imported the file correctly, and how to fix this?</p>
  <p>Thanks!</p>
  <p><strong>EDIT:</strong></p>
  <p>This looks very easy, but so far no solution.</p>
  <pre><code>import Algorithmia
  import algorithmia_utils as algo_utility
  from algorithmia_utils import AlgorithmiaUtils as xpto
  </code></pre>
  <p>And:</p>
  <pre><code>xpto.upload_model_to_algorithmia(
      local_path = local_path, 
      algorithmia_data_path = algorithmia_data_path, 
      model_name = model_name)
  </code></pre>
  <p>Return the error:</p>
  <pre><code>TypeError: upload_model_to_algorithmia() missing 1 required positional argument: 'self'
  </code></pre>