Modify py examples bugs