code: def _connectS3(self):
          
          s3 = boto.s3.connect_to_region(self.region)
          if s3 is None:
              raise ValueError("Could not connect to S3. Make sure '%s' is a valid S3 region." %
                               self.region)
          return s3
docs: :rtype: S3Connection