parameters: (self, path)
return_statement: return tail.lower() in (".py", ".pyw")
docstring: Test whether argument path is a Python script.
docstring_summary: Test whether argument path is a Python script.
docstring_tokens: Test whether argument path is a Python script .
function: def is_python(self, path):
          """Test whether argument path is a Python script."""
          head, tail = os.path.splitext(path)
          return tail.lower() in (".py", ".pyw")
function_tokens: def is_python ( self , path ) : head , tail = os . path . splitext ( path ) return tail . lower ( ) in ( ".py" , ".pyw" )