def sym2struc(sym):
    """return structure from a global symbol.

    vardict is usually global().

    In XMLRPC we cannot simply transfer references global objects.  So can
    implement here a way to convert a global object to an arbitrary structure.
    The default is to return the object itself.
    """
    return sym
