Library for writing synchronous code in twisted