more portable python shebangs (#5816)

This is useful on systems like NixOS, where python3 is not in
/usr/bin/python3 as well as for people using alternative ways to
install python such as virtualenv/pyenv.
diff --git a/src/basic/generate-gperfs.py b/src/basic/generate-gperfs.py
index 2e7d893..d4cc9aa 100644
--- a/src/basic/generate-gperfs.py
+++ b/src/basic/generate-gperfs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 """Generate %-from-name.gperf from %-list.txt
 """