Set __name__ when running addHandlers and stop using locals version of exec