Just fixes a few py2 prints and a ValueError syntax. This script is needed when running in production.