Catching import inside of exec issue