Fixed typo in api.rst

Replaced 'enviroment' with 'environment'
Merge pull request #710 from marcelometal/patch-1

Fixed typo in api.rst