If your .PY file contains a program or function/procedure you could import it into a KNIME Python node and use it there.
Also such a scenario is possible: