python to emit hadoop libdirs variable