Added error handling to python parsing
Should now work on both linux and windows