THRIFT-585 Wrap py:twisted calls in maybeDeferred

This avoids synchronous exceptions from the client libraries.
This is an update of the patch posted to: 
https://issues.apache.org/jira/browse/THRIFT-585

Patch: Mattias de Zalenski, James Broadhead