Fix runtests.py to return non-zero exit code on test failure

This means that Travis will now correctly detect test failures.

Credit: https://bugs.launchpad.net/myconnpy/+bug/459333