Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
test_*: converted to the new test harness. GvR note! test_signal.py works interatively (i.e. when verbose=1) but does not work inside the test harness. It must be a timing issue, but I haven't figured it out yet.