add notes and attributes in python snippets