Add a --region argument to s3put that allows you to manually specify a region, and use boto.s3.connect_to_region to simplify creation of the connection object.
Attempt to auto-detect bucket region information and if no manual --host or --region has been passed, set the region automatically so things just work. This fixes #1655.
Fix s3put to be compatible with Python 2.5.x
Merge pull request #1731 from danielgtaylor/s3put-fix

Fix s3put to auto-detect bucket region and act accordingly. Fixes #1731, #1655, and can act as an example around the issues in #621.