Fixed assignment based on expressions.

This fixes the issue raised by https://github.com/boto/botocore/pull/232/files#r9934081. Wish I had realized what I was doing in the first place. :unamused: 

Review please? @jamesls @danielgtaylor