Added check_syntax function so that code blocks can be easily checked without having to finagle with the _check_syntax decorator