Added which utility from twisted for #529