fix issue when peewee is not installed