Use Python2/3 compatible form of exec