Code Generations using exec() and eval()