require twisted for tests