[kennethreitz/requests#1208] adding a max_retries argument
[kennethreitz/requests#1208] adding unit test for max_retries