fix a problem with setup_readline, using __dict__ instead of a simple dir(), #280