Disable semantic for python when python is not found.

Signed-off-by: Meteor Liu <meteor1113@gmail.com>