def format_scope_name(scope_name, prefix, suffix):
 if (prefix is not ''):
  if (not (prefix[(-1)] == '/')):
   prefix += '/'
 if (suffix is not ''):
  if (not (suffix[0] == '/')):
   suffix = ('/' + suffix)
 return ((prefix + scope_name) + suffix)

def format_scope_name ( scope_name , prefix , suffix ) : if ( prefix is not '' ) : if ( not ( prefix [ ( - 1 ) ] == '/' ) ) : prefix += '/' if ( suffix is not '' ) : if ( not ( suffix [ 0 ] == '/' ) ) : suffix = ( '/' + suffix ) return ( ( prefix + scope_name ) + suffix )
add a predix and a suffix to a scope name .