PY is a script file format used by Python. PY files are used with Python programming language. PY files can be created in any text editor, but need a Python interpreter to be read. Python programming language is an object-oriented language that is often used for programming Web servers and other administrator programs.