adding __repr__ methods to see if that fixes the yaml.dump problem