Pass API status to pretty_print_retval, add another return value conversion