changed missed print to log
pep8 otree.models