def create_stops(self, data, **kwargs):
        self.stop_locations = {}

        for row in data:
            try:
                id = int(row['stop_id'])
            except __HOLE__:
                print 'WARNING: could not process stop id of %s' % row

            try:
                lat = float(row['stop_lat'])
                lng = float(row['stop_lon'])
            except ValueError:
                print 'WARNING: Could not process stop coordinates of %s' % row
                continue

            self.stop_locations[id] = (lat, lng)

            defaults = {
                'code': row['stop_code'],
                'name': self.allcaps(row['stop_name']),
                'description': self.allcaps(row['stop_desc']),
                'point': (lat, lng)
            }

            try:
                Stop(id=id, **defaults).save()
            except:
                print 'Stop exists'
                continue
dataset/ETHPy150Open shaunduncan/breezeminder/breezeminder/management/commands/import_marta_data.py/ImportMartaData.create_stops