I was wondering is there any watt to use getattr(v,'create'+file_format), then if afuture release of petsc adds a new file format there won't be need to add lines to the petsc io.