code: def find_path_package_name(thepath):
      
      module_found = False
      last_module_found = None
      continue_ = True
      while continue_:
          module_found = is_path_python_module(thepath)
          next_path = path.dirname(thepath)
          if next_path == thepath:
              continue_ = False
          if module_found:
              init_names = ['__init__%s' % suffix.lower() for suffix in _py_suffixes]
              if path.basename(thepath).lower() in init_names:
                  last_module_found = path.basename(path.dirname(thepath))
              else:
                  last_module_found = path.basename(thepath)
          if last_module_found and not module_found:
              continue_ = False
          thepath = next_path
      return last_module_found
docs: Takes a file system path and returns the name of the python package
          the said path belongs to.  If the said path can not be determined, it
          returns None.