I thought the context managers could simply be nested. Didn't test that though.