<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_same_codes(self):
 """get SAME codes, load into a dict and cache"""

        same = {}
        url = '''http://www.nws.noaa.gov/nwr/data/SameCode.txt'''
        # pylint: disable=E1103
        raw = requests.get(url).content.decode('utf-8')  # py3 compatibility
        for row in raw.split('\n'):
            try:
                code, local, state = str(row).strip().split(',')
                location = {'code': code, 'local': local, 'state': state.strip()}
                # when I contacted the nws to add a missing same code
                # they added a space before the state in the samecodes file
                # stripping it out
                same[code] = location
            finally:
                pass
        cache = open(self._same_cache_file, 'wb')
        cPickle.dump(same, cache)
        cache.close()
        return same