Add _should_be_ignored and modified sage_getdef.

When eval(name) or eval(base_name) is an instance of one of
ignore_classes, print_short_doc_and_def prints nothing.