title: Access method from different package in Python
body: <p>I am trying to automate android game. I have so many methods so I break my code in 3 parts.
  <strong>main</strong>, <strong>functions</strong> and <strong>collectors</strong>.
  I have a method in <strong>functions</strong> which is:</p>
  
  <pre><code>def search_image(image, confidence=.6, click=True):
  location = pyautogui.locateCenterOnScreen(image, confidence=confidence)
  if location is not None:
      if click:
          pyautogui.click(location)
      return location
  else:
      return False
  </code></pre>
  
  <p>But I cant access it in <strong>collectors</strong>, like this:</p>
  
  <pre><code>from functions import*
  def collect_product():
      if search_image(r'Resources\NewOrderAvailable.png') is not False:
          search_image(r'Resources\NewOrderAvailable2.png')
          for item in range(0, 6):
              search_image(r'Resources\Collect.png', confidence=.8)
          search_image(r'Resources\Back.png')
          search_image(r'Resources\CloseOrderMenu.png')
      else:
          return False
  </code></pre>
  
  <p>I got <strong><em>NameError: name 'search_image' is not defined</em></strong>. I need to duplicate that method to make it work. I was wondering what went wrong and how to fix it?</p>