Add logging type info.
Ensure that only pure python strings (not unicode) are passed to Julia.

I think this is a bug in either Julia or PyCall, but until we sort out
their unicode support, we should stick to ascii only.
Clean up execution loop and ensure counters are properly synced.