logging for python code evaluation