improve unit tests (#310)
improve unit tests (#310)

* improve unit tests

ignore resource warnings, handle S3 race condition in tests

* Py2 compatibility

RaRe-Technologies/smart_open,mpenkov/smart_open,piskvorky/smart_open,mpenkov/smart_open,RaRe-Technologies/smart_open