Durable Rules Python Programming