SNS message attributes fixes after actually testing with AWS.

Also make tests pass under python 2.6.