can now pass dict to ast visitor to recreate instances from a __class__ dict
filemode
fixed exception serialization. Added dict-to-class and class-to-dict extensibility.