Convert s3 tags to a python dict