Python file in / out template