title: unable to access new method from class python
body: <p>I am new to python. I am facing a issue. When i add new method in a class, then i am unable to call it through their instance variable. Here is the details of the issue. </p>
  
  <p>I am using <a href="https://github.com/instagrambot/instabot" rel="nofollow noreferrer">https://github.com/instagrambot/instabot</a>. </p>
  
  <p>I have added new method in bot.py file (<a href="https://github.com/instagrambot/instabot/blob/master/instabot/bot/bot.py" rel="nofollow noreferrer">https://github.com/instagrambot/instabot/blob/master/instabot/bot/bot.py</a>). Here is code of new function.</p>
  
  <pre><code>......
  ......
  
  from .bot_stats import get_user_stats_dict
  
  class Bot(API):
  ....
      def get_user_stats_dict(self, username, path=""):
          return get_user_stats_dict(self, username, path=path)
  </code></pre>
  
  <p>It is calling new function with the same name from bot_stats file(file link: <a href="https://github.com/instagrambot/instabot/blob/master/instabot/bot/bot_stats.py" rel="nofollow noreferrer">https://github.com/instagrambot/instabot/blob/master/instabot/bot/bot_stats.py</a>). Here is the function code which i have added in this file. </p>
  
  <pre><code>def get_user_stats_dict(self, username, path=""):
      if not username:
          username = self.username
      user_id = self.convert_to_user_id(username)
      infodict = self.get_user_info(user_id)
      if infodict:
          data_to_save = {
              "date": str(datetime.datetime.now().replace(microsecond=0)),
              "followers": int(infodict["follower_count"]),
              "following": int(infodict["following_count"]),
              "medias": int(infodict["media_count"]),
              "user_id": user_id
          }
          return data_to_save
      return False
  </code></pre>
  
  <p>I have created a new file test.py which is running this new method. Here is the code script: </p>
  
  <pre><code>import os
  import sys
  import time
  import argparse
  
  sys.path.append(os.path.join(sys.path[0], '../'))
  from instabot import Bot
  
  bot = Bot()
  bot.login(username='username', password='pass')
  resdict = bot.get_user_stats_dict('username')
  </code></pre>
  
  <p>I am running test.py file using following command in CMD. </p>
  
  <pre><code>python test.py
  </code></pre>
  
  <p>I am getting following error: </p>
  
  <pre><code>AttributeError: 'Bot' object has no attribute 'get_user_stats_dict'
  </code></pre>