Fixu bug in io/petsc.py.

This bug was introduced by me in #358.