How to call a simple python script in snaplogic ..suppose want to sum two nos or print hello?

A Simple program which is running fine in idle. I am trying to call the file in snaplogic, it is failing again and again . Please let me know hoe to call this in snaplogic .

a = 5
y = 6
z = 5 + 6
with open (“new1.txt”,‘w’)as f: