A physics computational framework for python and ipython