def GetInstanceName(Module):
    """
	return Name of module instance
	"""
    import inspect
    frame, filename, line_number, function_name, lines, index = (inspect.
        getouterframes(inspect.currentframe())[2])
    tmp = frame.f_globals.copy()
    tmp.update(frame.f_locals.items())
    for k, var in tmp.items():
        if isinstance(var, Module.__class__):
            if hash(Module) == hash(var):
                Module.__name__ = k
                return Module.__name__
