standarized write API across io modules in pyclaw and petclaw