Added tests and updated sympy printer.  Also removed some try excepts to simplify things.