make pendulum dynamics have ufunc behavior

handle temp files better