Hi,
You can store the generated pdf to a variable and then save it to a file:
pdf = client.convertURI('http://example.com')
open('document.pdf', 'wb').write(pdf)
Or you can save the pdf directly to a file:
client.convertURI('http://example.com', open('document.pdf', 'wb'))
The latter one is more efficient and should be preferred. The convertURI() method is documented
here.
If you run out of tokens provided for the trial period and need more for testing just let us know.
As for purchasing the tokens, a plan provides your account with a respective number of tokens per month. Unused tokens are not carried over to the next month.