Several functions (magnitude, dot, etc) fail because reduce has been removed from the core library. To use it, one needs to add:
from functools import reduce
to the header
This appears to work in python 2.7 as well, so it appears that it would do no harm.