Improve DynamicInterface.__str__ and __repr__