old_contents: #! /usr/bin/env python3
  # Compile JSX & minify javascript
  # Usage of compiled / minified JS is turned on with the "devmode" flag in the Portal
  # Note that this requires Node and the following two NPM modules:
  # - jsx
  # - uglify-js (installed with npm install uglify-js -g to provide the command line wrapper)
  
  import os
  import re
  
  f = os.popen('find . -wholename "*/src/*.jsx.js"')
  
  for line in f:
    l = line.strip()
    print("Compiling: " + l)
    #print("jsx " + l + " | uglifyjs -c drop_console - > " + re.sub("\.jsx",".min",l))
    os.system("jsx " + l + " | uglifyjs -c drop_console - > " + re.sub("\.jsx",".min",l))
  
new_contents: #! /usr/bin/env python2
  # Compile JSX & minify javascript
  # Usage of compiled / minified JS is turned on with the "devmode" flag in the Portal
  # Note that this requires Node and the following two NPM modules:
  # - jsx
  # - uglify-js (installed with npm install uglify-js -g to provide the command line wrapper)
  
  import os
  import re
  
  f = os.popen('find . -wholename "*/src/*.jsx.js"')
  
  for line in f:
    l = line.strip()
    print("Compiling: " + l)
    #print("jsx " + l + " | uglifyjs -c drop_console - > " + re.sub("\.jsx",".min",l))
    os.system("jsx " + l + " | uglifyjs -c drop_console - > " + re.sub("\.jsx",".min",l))
  
subject: change python3 to python2 in shebang line