code: def pkg_by_name(self, name):
          
          pkgmatches = self.all_pkgs_by_name(name)
          if (len(pkgmatches) != 0):
              return self.all_pkgs_by_name(name)[-1]
          else:
              return None
docs: Return a single package that matches name.