Simplified petsc.py