Fix shebang, fix missing includes, use only known python version (compat).