def is_python(self, path):
        head, tail = os.path.splitext(path)
        return tail.lower() in (".py", ".pyw")
Test whether argument path is a Python script.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/CGIHTTPServer.py/CGIHTTPRequestHandler.is_python