Moving F loctype pre-assingment into predict.py, letting the cache be checked first.