update py demo to support latest logging and tagging features of the client