code: def get_resource(self, name):
          
          for resource in self.resources:
              if resource.name == name:
                  return resource
          return None
docs: https://github.com/frictionlessdata/datapackage-py#package