def connect ( * args , * * kwargs ) : global __CONNECTION if __CONNECTION is None : __CONNECTION = Connection ( * args , * * kwargs ) return __CONNECTION
python conn is not defined
Creates or returns a singleton : class : . Connection object
def connect(*args, **kwargs):
    """Creates or returns a singleton :class:`.Connection` object"""
    global __CONNECTION
    if __CONNECTION is None:
        __CONNECTION = Connection(*args, **kwargs)

    return __CONNECTION