a helper method to retrieve id of drive space

def _get_space(self):
        
        ''' a helper method to retrieve id of drive space '''
        
        title = '%s._space_id' % self.__class__.__name__
        list_kwargs = {
            'q': "'%s' in parents" % self.drive_space,
            'spaces': self.drive_space,
            'fields': 'files(name, parents)',
            'pageSize': 1
        }
        try:
            response = self.drive.list(**list_kwargs).execute()
        except:
            raise DriveConnectionError(title)
        for file in response.get('files',[]):
            self.space_id = file.get('parents')[0]
            break
        return self.space_id