Add a few more exception cases to python parser

This patch will catch common duplicate input file errors: both duplicate section and duplicate parameter errors.

closes #3155