Update api.py

Use double double colon to format example as source code
Merge pull request #14 from curiousleo/patch-1

Tiny change in api.py docstring