Python output to shell variable. So !cp file1 "{dir_path}".