def _GetTypeName(x):
 if (type(x) is types.InstanceType):
  return x.__class__.__name__
 else:
  return type(x).__name__

def _GetTypeName ( x ) : if ( type ( x ) is types . InstanceType ) : return x . __class__ . __name__ else : return type ( x ) . __name__
returns a user-friendly name descriping the given objects type .