Fix Python use of getLocalDir