Catch more Python errors
Merge pull request #160 from flodolo/python_errors

Catch more Python errors