diff --git a/doc/apibuild.py b/doc/apibuild.py
index b98317a8ba660a975ae9b413b73b7c94c1308f39_ZG9jL2FwaWJ1aWxkLnB5..068dd813f30df1f540b5f3a1f9892b45bc62397b_ZG9jL2FwaWJ1aWxkLnB5 100755
--- a/doc/apibuild.py
+++ b/doc/apibuild.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 #
 # This is the API builder, it parses the C sources and build the
 # API formal description in XML.
diff --git a/python/generator.py b/python/generator.py
index b98317a8ba660a975ae9b413b73b7c94c1308f39_cHl0aG9uL2dlbmVyYXRvci5weQ==..068dd813f30df1f540b5f3a1f9892b45bc62397b_cHl0aG9uL2dlbmVyYXRvci5weQ== 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 #
 # generate python wrappers from the XML API description
 #
diff --git a/python/tests/basic.py b/python/tests/basic.py
index b98317a8ba660a975ae9b413b73b7c94c1308f39_cHl0aG9uL3Rlc3RzL2Jhc2ljLnB5..068dd813f30df1f540b5f3a1f9892b45bc62397b_cHl0aG9uL3Rlc3RzL2Jhc2ljLnB5 100755
--- a/python/tests/basic.py
+++ b/python/tests/basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 import sys
 import libxml2
 # Memory debug specific
diff --git a/python/tests/exslt.py b/python/tests/exslt.py
index b98317a8ba660a975ae9b413b73b7c94c1308f39_cHl0aG9uL3Rlc3RzL2V4c2x0LnB5..068dd813f30df1f540b5f3a1f9892b45bc62397b_cHl0aG9uL3Rlc3RzL2V4c2x0LnB5 100755
--- a/python/tests/exslt.py
+++ b/python/tests/exslt.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 import sys
 import libxml2
 # Memory debug specific
diff --git a/python/tests/extelem.py b/python/tests/extelem.py
index b98317a8ba660a975ae9b413b73b7c94c1308f39_cHl0aG9uL3Rlc3RzL2V4dGVsZW0ucHk=..068dd813f30df1f540b5f3a1f9892b45bc62397b_cHl0aG9uL3Rlc3RzL2V4dGVsZW0ucHk= 100644
--- a/python/tests/extelem.py
+++ b/python/tests/extelem.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 import sys
 import string
 import libxml2
diff --git a/python/tests/extfunc.py b/python/tests/extfunc.py
index b98317a8ba660a975ae9b413b73b7c94c1308f39_cHl0aG9uL3Rlc3RzL2V4dGZ1bmMucHk=..068dd813f30df1f540b5f3a1f9892b45bc62397b_cHl0aG9uL3Rlc3RzL2V4dGZ1bmMucHk= 100755
--- a/python/tests/extfunc.py
+++ b/python/tests/extfunc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 import sys
 import string
 import libxml2
diff --git a/python/tests/pyxsltproc.py b/python/tests/pyxsltproc.py
index b98317a8ba660a975ae9b413b73b7c94c1308f39_cHl0aG9uL3Rlc3RzL3B5eHNsdHByb2MucHk=..068dd813f30df1f540b5f3a1f9892b45bc62397b_cHl0aG9uL3Rlc3RzL3B5eHNsdHByb2MucHk= 100755
--- a/python/tests/pyxsltproc.py
+++ b/python/tests/pyxsltproc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 #
 # The exercise of rewriting xsltproc on top of the python
 # bindings, not complete yet and shows up the things missing