A safer python exec.