[ADD] ex.6.4. Python constraint on sessions