Use “with” statement for OpenerDirector.open()