Yes that is icky :), there just on statement I pass a bytestring so now I assume we only pass a file like object
to put_object and remove the getattr stuff.