Refactoring s3_loader

Hey William,

Thanks for the project! I took the liberty of refactoring s3_loader module a bit while using the code for reference.

Tell me if this is useful to you.