Sorry for the delay, I was afk most of the time in the last couple of days.
In any case, I went ahead and merged your changes into trunk.
The last patch you attached was generated using "git diff" which doesn't preserve git history and commit author. Because of that I went ahead and used a "git format-patch" patch generated by Github (https://github.com/apache/libcloud/pull/153.patch) which I manually squashed.
Patch also had a bunch of pep8 issues which I fixed in the trunk. Next time please make sure you do that.