Remove unnecessary check for python headers

We are not building python bindings anymore these days,
we are using gobject-introspection.