fixed python syntax in example