They are trying to use python though, not curl.
The example they mention above has the correct headers.