update the statement of testing if a handler is a list or tuple

A small patch.
I think it's not necessary to limit the type of handler definition to tuple, list is OK too.
And why dont' use tuple directly instead of type(())?