Python Insert Variable Into Sql Syntax Validator