<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def init(self):
        '''
        Use the location_code to perform a geolookup and find the closest
        station. If the location is a pws or icao station ID, no lookup will be
        peformed.
        '''
        try:
            for no_lookup in ('pws', 'icao'):
                sid = self.location_code.partition(no_lookup + ':')[-1]
                if sid:
                    self.station_id = self.location_code
                    return
        except AttributeError:
            # Numeric or some other type, either way we'll just stringify
            # it below and perform a lookup.
            pass

        self.get_station_id()