def ParseFullPath(full_path):
 (bucket, _, path) = full_path.partition('/')
 if ((not bucket) or (not IsBucket(bucket))):
  return None
 else:
  return (bucket, path)

def ParseFullPath ( full_path ) : ( bucket , _ , path ) = full_path . partition ( '/' ) if ( ( not bucket ) or ( not IsBucket ( bucket ) ) ) : return None else : return ( bucket , path )
parse a full path and return a .