[Twisted-Python] Unit tests, inline callbacks, and exception handling