Looking for a python example for the smartproxy API

I find it quite easy to read parameters from the API, but a post always
fails with a 400. I'm not sure what I'm doing wrong and the logs are not
really helpful.

I'm trying to set the dhcp in particular.