This is the recommended way. Type instance will raise an exception if you set an invalid (or non-existent) parameter. params = mycam.devicemgmt.create_type('SetHostname') params.Hostname = ...
This module provides function decorators which can be used to wrap a function such that it will be retried until some condition is met. It is meant to be of use when accessing unreliable resources ...