Made numerous Python scripts in utils work with either 2 or 3.