logictree: fixed some pep8 and pylint warnings
logictree: fixed some pep8 and pylint warnings

Former-commit-id: 46eefef68f1bd94c1d3c9d539c42525bd6db277c
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine