The atomic_formula class' print_pddl() function specifically doesn't print the object's type if the type is just 'object', but when a predicate or function is being defined in the domain to apply to any object I am pretty sure I need to be print '?obj - object' instead of just '?obj'.