python rules