code: def is_path_python_module(thepath):
      
      thepath = path.normpath(thepath)
  
      if path.isfile(thepath):
          base, ext = path.splitext(thepath)
          if ext in _py_suffixes:
              return True
          return False
  
      if path.isdir(thepath):
          for suffix in _py_suffixes:
              if path.isfile(path.join(thepath, '__init__%s' % suffix)):
                  return True
      return False
docs: Given a path, find out of the path is a python module or is inside
          a python module.