Try usin eval instead of exec.