Fix mathml tests in python 3.

It failed on `file` not being defined.