Python syntax check