When I was new to programming, I focused way too much on learning the syntax, especially the brackets, the semicolons, and ...
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 = ...