Try to improve python crash logging

This seems like it should work, but IPython seems to be getting in my way.