Examples modified to use python