modify Attributes field in python snippets