update python sample