Add better test to check for syntax errors

A simple embedded Python script will do