python rewrite with s3 backing support.