Wrapping __init__ in Transport in with_statement as found by Thomas Steinacher