added filter function
check if `py-object-p' is defined yet