workaround "AttributeError: 'str' object has no attribute 'get'" error

I was trying to get your examples to run, but got AttributeError all the time. I guess it was because changes in botocore. I made it to work with this change. I am not sure if it's the correct fix for the problem, but it works for me this way.