update loremaster.py