def is_obj(x):
    """
    A quick (but maybe not perfect) check for object types

    Returns:
      bool: True if the object has __dict__ attribute, otherwise False
    """
    try:
        getattr(x, '__dict__')
        return True
    except:
        return False