fix issue with pylookup