Optim on writing things in pyss