title: python method works outside of Class, but not within Class
body: <p>I am new to python and trying understand and use classes. I haves simple zipcode Class that takes a zip code as a string and makes an object. However, calling any of the method always returns zip code not found. If I run any of the methods outside the class block, it works fine. Any thoughts or ideas is appreciated. Btw, I am using the pyzipcode library for this little project.</p>
  
  <pre><code>from pyzipcode import ZipCodeDatabase
  
  class zipCodeProcessor(object):
  
      def __init__(self, zipcode):
          self.zipcode = zipcode
  
      #method to extract the Timezone from a given zip code
      def zipToTimezone(zip):
          zipCodeDB = ZipCodeDatabase()
          zipTimezoneQuery = zipCodeDB[zip]
          return zipTimezoneQuery.timezone
  
      #method to extract the city from a given zip code using pyzipcode
      def zipToCity(zipcode):
          zipCodeDB = ZipCodeDatabase()
          zipCityQuery = zipCodeDB[zipcode]
          return zipCityQuery.city
  
      #method to extract the state from a given zip code using pyzipcode
      def zipToState(zip):
          zipCodeDB = ZipCodeDatabase()
          zipStateQuery = zipCodeDB[zip]
          return zipStateQuery.state
  
  zipObject = zipCodeProcessor('10005')
  zipObject.zipToState()
  </code></pre>