catch exception for log(0)
preprocessing: prevent wrong analyses for "<" and ">"
python 3 compatibility