Defined __repr__ for tf/ss

Makes display work for IPython.