calling function from py is fine now