Add a few more exception cases to python parser
closes #3155
Merge pull request #3929 from permcody/parser_enhancements_3155

Add a few more exception cases to python parser