True when Name is an attribute of Module. The name is derived from
the Python built-in hasattr(). If Name is unbound, this enumerates
the members of py_object_dir/2.
Arguments:
ModuleOrObj
- If this is an atom it refers to a module, otherwise
it must be a Python object reference.