Support DtoRange for rules

The server-side API has changed taking a DtoRange object instead of the
separate start/end values. This is the corresponding change in the
clients (both py and cli).

Issue: #495
Signed-off-by: Galo Navarro <galo@midokura.com>