fix setup.py test to run doctests again
update doctests for new connect_signal return value
fix signal emit order:use list for handlers