Some more changes to pymorph.py and added outpututils.py