code: def connect(cls, resource):
          
          import boto
          return boto.s3.connect_to_region(cls.get_region(resource))
docs: Connect to this Region's endpoint.
  
          Returns a connection object pointing to the endpoint associated
          to the received resource.