Python object inspection magic function for ipython shell