correct error in python3

in "except E as v:" variable v is local

regression introduced in c32e083
restore old (correct) code in protocol.OwnetProxy
correct init logic in protocol.proxy