add python to file