add better exception handling

- general handle_exception method
- sleep when encoutnering 429 (rate limit exceeded)
Merge pull request #15 from kevinslin/ksl

add better exception handling