update code section with py ref