fixed logging in markov.py