LIBCLOUD-344: More code improvements based on pull code review comments.

* Fixed compatibility with Python 2.5 string contatenation
* Improved logic to stop generator iteration when reached end
* More docstring