Make except clause compatible with Python 3 in scripts/targetcli

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>