title: Python: AttributeError: object has no attribute 'method'
body: <p>I'm very much new to Python, essentially being pushed into a new project with no knowledge of the language whatsoever. I've gone over a number of tutorials to get a gist of the syntax and some of the functions, but I'm currently stumped on something that seems pretty basic.</p>
  
  <p>I have a class GeoLocationHandlerObj in GeoLocationSolver.py which has a method 'myMethod':</p>
  
  <pre><code>class GeoLocationHandlerObj(object):
    def __init__(self, connector, debug=0):
      self._debug = debug
      self.locator = GeoLocationSolverObj(connector)
      return(None)
  
    def close(self):
      ...
      return(None)
  
    def getAdr(self, point, lang):
      ...
      return(None)
  
    def getCom(self, point, lang):
      ...
      return(None)
  
    def getHmp(self, point, lang):
      ...
      return(None)
  
    def myMethod(self):
      print "test"
      return(None)
  </code></pre>
  
  <p>I import it and try to call myFunction:</p>
  
  <pre><code>import sys
  import os
  import psycopg2
  import string
  import json
  import socket
  import random
  
  from GeoPackage.GeoCoding.GeoLocationSolver import *
  
  if __name__ == "__main__":
    connector = GeoPSConnectorObj(...)
    handler = GeoLocationHandlerObj(connector)
    handler.myMethod()
  </code></pre>
  
  <p>When I run this code, I get the following error:</p>
  
  <p>AttributeError: 'GeoLocationHandlerObj' object has no attribute 'myMethod'.</p>
  
  <p>What am I missing in order to successfully call this method?</p>