def parse_s3_url(url):
 bucket = ''
 path = ''
 if url:
  result = urlparse.urlparse(url)
  bucket = result.netloc
  path = result.path.strip('/')
 return (bucket, path)

def parse_s3_url ( url ) : bucket = '' path = '' if url : result = urlparse . urlparse ( url ) bucket = result . netloc path = result . path . strip ( '/' ) return ( bucket , path )
parses s3 url .