Revert "Revert update to getNorm for 2.7.8"

This reverts commit 9fffd31f7c45197fbf10862c823b357424bf5127.
Add stdin=PIPE to calls to Popen where stdout=PIPE