more logging and pythonification