use python3 in safe_exec